5 clippy::blacklisted_name,
6 clippy::branches_sharing_code
8 #![warn(clippy::useless_let_if_seq)]
17 fn issue985() -> i32 {
26 fn issue985_alt() -> i32 {
37 #[allow(clippy::manual_strip)]
38 fn issue975() -> String {
39 let mut udn = "dummy".to_string();
40 if udn.starts_with("uuid:") {
41 udn = String::from(&udn[5..]);
46 fn early_return() -> u8 {
47 // FIXME: we could extend the lint to include such cases:
85 // `toto` is used several times
97 // found in libcore, the inner if is not a statement but the block's expr
106 // baz needs to be mut
114 // issue 3043 - types with interior mutability should not trigger this lint
116 let mut val = Cell::new(1);
120 println!("{}", val.get());