mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-01 06:51:39 +00:00
Fix trivial numeric cast in visit_u64
This commit is contained in:
parent
c3eced410f
commit
2eed855bff
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user