Skip to content

Commit

Permalink
Clippy-proposed improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed May 2, 2024
1 parent 7e2021d commit 84ccc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idns/commands/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 84ccc37

Please sign in to comment.