Skip to content

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Nov 5, 2024
1 parent b6a853a commit f3c2ed3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/commands/signzone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ impl SignZone {
records
.write_with_comments(&mut std::io::stdout().lock(), |r| {
if r.rtype() == Rtype::NSEC3 {
if let Some(hash) = hashes.get(r.owner()) {
Some(format!(" {hash}"))
} else {
None
}
hashes.get(r.owner()).map(|hash| format!(" {hash}"))
} else {
None
}
Expand Down

0 comments on commit f3c2ed3

Please sign in to comment.