5 clippy::blacklisted_name,
6 clippy::branches_sharing_code,
7 clippy::needless_late_init
9 #![warn(clippy::useless_let_if_seq)]
18 fn issue985() -> i32 {
27 fn issue985_alt() -> i32 {
38 #[allow(clippy::manual_strip)]
39 fn issue975() -> String {
40 let mut udn = "dummy".to_string();
41 if udn.starts_with("uuid:") {
42 udn = String::from(&udn[5..]);
47 fn early_return() -> u8 {
48 // FIXME: we could extend the lint to include such cases:
86 // `toto` is used several times
98 // found in libcore, the inner if is not a statement but the block's expr
107 // baz needs to be mut
115 // issue 3043 - types with interior mutability should not trigger this lint
117 let mut val = Cell::new(1);
121 println!("{}", val.get());