Fix trivial numeric cast in visit_u64

This commit is contained in:
David Tolnay 2017-09-09 12:37:00 -07:00
parent c3eced410f
commit 2eed855bff
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 1 deletions

View File

@ -1428,7 +1428,7 @@ fn deserialize_identifier(
#variant_indices => _serde::export::Ok(#constructors),
)*
_ => _serde::export::Err(_serde::de::Error::invalid_value(
_serde::de::Unexpected::Unsigned(__value as u64),
_serde::de::Unexpected::Unsigned(__value),
&#fallthrough_msg))
}
}

View File

@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(trivial_numeric_casts)]
#[macro_use]
extern crate serde_derive;