Disable unnecessary_cast for cfg-dependant types
This commit is contained in:
parent
3e7c6dec24
commit
a39a93faeb
2 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue