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
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1428,7 +1428,7 @@ fn deserialize_identifier(
#variant_indices => _serde::export::Ok(#constructors), #variant_indices => _serde::export::Ok(#constructors),
)* )*
_ => _serde::export::Err(_serde::de::Error::invalid_value( _ => _serde::export::Err(_serde::de::Error::invalid_value(
_serde::de::Unexpected::Unsigned(__value as u64), _serde::de::Unexpected::Unsigned(__value),
&#fallthrough_msg)) &#fallthrough_msg))
} }
} }
+2
View File
@@ -6,6 +6,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![deny(trivial_numeric_casts)]
#[macro_use] #[macro_use]
extern crate serde_derive; extern crate serde_derive;