1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
13 clippy::similar_names,
14 clippy::blacklisted_name
16 #![warn(clippy::useless_let_if_seq)]
25 fn issue985() -> i32 {
34 fn issue985_alt() -> i32 {
45 fn issue975() -> String {
46 let mut udn = "dummy".to_string();
47 if udn.starts_with("uuid:") {
48 udn = String::from(&udn[5..]);
53 fn early_return() -> u8 {
54 // FIXME: we could extend the lint to include such cases:
92 // `toto` is used several times
104 // found in libcore, the inner if is not a statement but the block's expr
113 // baz needs to be mut