1
Fork 0

Change the trivial cast lints to allow by default

This commit is contained in:
Nick Cameron 2015-03-27 18:41:18 +13:00
parent 199bdcfeff
commit a67faf1b25
25 changed files with 8 additions and 32 deletions

View file

@ -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)
}
})+