Silence a clippy lint

pull/779/head
Wilfred Hughes 2024-10-23 08:51:13 +07:00
parent 6a5f5d6f00
commit 05378e4554
1 changed files with 3 additions and 0 deletions

@ -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().