Skip to content

Commit 05378e4

Browse files
committed
Silence a clippy lint
1 parent 6a5f5d6 commit 05378e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
// implementation does not consider the mutable fields, so it is still
2020
// correct.
2121
#![allow(clippy::mutable_key_type)]
22+
// It's sometimes more readable to explicitly create a vec than to use
23+
// the Default trait.
24+
#![allow(clippy::manual_unwrap_or_default)]
2225
// .to_owned() is more explicit on string references.
2326
#![warn(clippy::str_to_string)]
2427
// .to_string() on a String is clearer as .clone().

0 commit comments

Comments
 (0)