From 7cc6f7fbb02679e59d174fffa70f498c0d7af858 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 Jul 2022 21:19:54 -0700 Subject: [PATCH] Ignore new_without_default clippy lint error: you should consider adding a `Default` implementation for `UnitDeserializer` --> serde/src/de/value.rs:144:5 | 144 | / pub fn new() -> Self { 145 | | UnitDeserializer { 146 | | marker: PhantomData, 147 | | } 148 | | } | |_____^ | = note: `-D clippy::new-without-default` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default help: try adding this | 142 + impl Default for UnitDeserializer { 143 + fn default() -> Self { 144 + Self::new() 145 + } 146 + } | --- serde/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serde/src/lib.rs b/serde/src/lib.rs index e5d40d4b..ce4ccd7e 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -123,6 +123,7 @@ explicit_auto_deref, let_underscore_drop, map_err_ignore, + new_without_default, result_unit_err, wildcard_imports, // not practical