5 clippy::blacklisted_name
7 #![warn(clippy::useless_let_if_seq)]
16 fn issue985() -> i32 {
25 fn issue985_alt() -> i32 {
36 #[allow(clippy::manual_strip)]
37 fn issue975() -> String {
38 let mut udn = "dummy".to_string();
39 if udn.starts_with("uuid:") {
40 udn = String::from(&udn[5..]);
45 fn early_return() -> u8 {
46 // FIXME: we could extend the lint to include such cases:
84 // `toto` is used several times
96 // found in libcore, the inner if is not a statement but the block's expr
105 // baz needs to be mut
113 // issue 3043 - types with interior mutability should not trigger this lint
115 let mut val = Cell::new(1);
119 println!("{}", val.get());