You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![deny(warnings)]#![warn(clippy::pedantic)]structX{}implX{#[allow(clippy::unused_self, clippy::cast_possible_truncation)]fntest(&self,a:u32){println!("testing {}", a asu16);}}pubfnmain(){let x = X{};
x.test(1);}
This correctly suppresses the clippy::cast_possible_truncation warning, but fails to suppress the clippy::unused_self.
The rust playground is currently at 0.0.212 (2019-12-29 c807fbc).
The same error is produced by clippy 0.0.212 (c8e3cfb 2019-10-28).
Older versions I have access to, such as clippy 0.0.212 (4e7e71b 2019-10-11) don't have this lint, so it's hard to pin down.
The text was updated successfully, but these errors were encountered:
This code:
This correctly suppresses the
clippy::cast_possible_truncation
warning, but fails to suppress theclippy::unused_self
.The rust playground is currently at 0.0.212 (2019-12-29 c807fbc).
The same error is produced by clippy 0.0.212 (c8e3cfb 2019-10-28).
Older versions I have access to, such as
clippy 0.0.212 (4e7e71b 2019-10-11)
don't have this lint, so it's hard to pin down.The text was updated successfully, but these errors were encountered: