From fc04d1219aaf2cf5a9702c968fe2d1970ddc146b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 23 Aug 2023 16:05:07 -0700 Subject: [PATCH] Remove useless discard of function argument that is used --- serde/src/de/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index 09cc06c2..9e81806e 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -1555,7 +1555,6 @@ pub trait Visitor<'de>: Sized { where E: Error, { - let _ = v; Err(Error::invalid_type(Unexpected::Bytes(v), &self)) }