3 #![allow(unused, clippy::needless_bool)]
4 #![allow(clippy::if_same_then_else, clippy::single_match)]
5 #![warn(clippy::needless_return)]
7 macro_rules! the_answer {
13 fn test_end_of_fn() -> bool {
21 fn test_no_semicolon() -> bool {
25 fn test_if_block() -> bool {
33 fn test_match(x: bool) -> bool {
46 let _ = || return true;
49 fn test_macro_call() -> i32 {
57 fn test_void_if_fun(b: bool) {
65 fn test_void_match(x: u32) {
73 let _ = test_end_of_fn();
74 let _ = test_no_semicolon();
75 let _ = test_if_block();
76 let _ = test_match(true);