Skip to content

Commit

Permalink
Silence a clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Oct 23, 2024
1 parent 6a5f5d6 commit 05378e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
// implementation does not consider the mutable fields, so it is still
// correct.
#![allow(clippy::mutable_key_type)]
// It's sometimes more readable to explicitly create a vec than to use
// the Default trait.
#![allow(clippy::manual_unwrap_or_default)]
// .to_owned() is more explicit on string references.
#![warn(clippy::str_to_string)]
// .to_string() on a String is clearer as .clone().
Expand Down

0 comments on commit 05378e4

Please sign in to comment.