diff --git a/src/util.rs b/src/util.rs index c59a254..eb83e4e 100644 --- a/src/util.rs +++ b/src/util.rs @@ -171,9 +171,7 @@ where while let Some((key, value)) = access.next_entry()? { if map.contains_key(&key) { - return Err(serde::de::Error::custom(format!( - "duplicate key `{key}`" - ))); + return Err(serde::de::Error::custom(format!("duplicate key `{key}`"))); } map.insert(key, value);