From 84ccc379e18599f30319799ac38f314a4e3829e1 Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Thu, 2 May 2024 11:22:11 +0200 Subject: [PATCH] Clippy-proposed improvements. --- src/idns/commands/help.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idns/commands/help.rs b/src/idns/commands/help.rs index d7db464..51c3042 100644 --- a/src/idns/commands/help.rs +++ b/src/idns/commands/help.rs @@ -17,7 +17,7 @@ pub struct Help { impl Help { pub fn execute(self) -> Result<(), Error> { - let page = match self.command.as_ref().map(String::as_str) { + let page = match self.command.as_deref() { None => Self::IDNS_1, Some("query") => Self::IDNS_QUERY_1, Some(command) => {