// option. This file may not be copied, modified, or distributed
// except according to those terms.
-
-#![feature(tool_lints)]
-
-
#![warn(clippy::needless_return)]
fn test_end_of_fn() -> bool {
}
fn test_no_semicolon() -> bool {
- return true
+ return true;
}
fn test_if_block() -> bool {
true => return false,
false => {
return true;
- }
+ },
}
}