Remove useless discard of function argument that is used

This commit is contained in:
David Tolnay 2023-08-23 16:05:07 -07:00
parent 3c7dd6fc1e
commit fc04d1219a
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1555,7 +1555,6 @@ pub trait Visitor<'de>: Sized {
where
E: Error,
{
let _ = v;
Err(Error::invalid_type(Unexpected::Bytes(v), &self))
}