Change the trivial cast lints to allow by default
This commit is contained in:
parent
199bdcfeff
commit
a67faf1b25
25 changed files with 8 additions and 32 deletions
|
@ -2430,7 +2430,6 @@ macro_rules! to_json_impl_i64 {
|
|||
($($t:ty), +) => (
|
||||
$(impl ToJson for $t {
|
||||
fn to_json(&self) -> Json {
|
||||
#![allow(trivial_numeric_casts)]
|
||||
Json::I64(*self as i64)
|
||||
}
|
||||
})+
|
||||
|
@ -2443,7 +2442,6 @@ macro_rules! to_json_impl_u64 {
|
|||
($($t:ty), +) => (
|
||||
$(impl ToJson for $t {
|
||||
fn to_json(&self) -> Json {
|
||||
#![allow(trivial_numeric_casts)]
|
||||
Json::U64(*self as u64)
|
||||
}
|
||||
})+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue