Disable unnecessary_cast for cfg-dependant types

This commit is contained in:
Cameron Steffen 2020-11-22 19:21:01 -06:00
parent 3e7c6dec24
commit a39a93faeb
2 changed files with 12 additions and 1 deletions

View file

@ -20,4 +20,7 @@ fn main() {
foo!(a, i32);
foo!(b, f32);
foo!(c, f64);
// do not lint cast to cfg-dependant type
1 as std::os::raw::c_char;
}