|
LL | #![deny(clippy::if_same_then_else, clippy::branches_sharing_code)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+ = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
|
LL ~ }
LL + let result = false;
LL | | }
| |_____^
|
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
|
LL ~ }
LL + println!("Same end of block");
LL | | }
| |_____^
|
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
|
LL ~ }
LL + println!(
LL | | }
| |_________^
|
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
|
LL ~ }
LL + println!("Hello World");
LL | | }
| |_____^
|
- = warning: Some moved values might need to be renamed to avoid wrong references
-help: consider moving the end statements out like this
+ = warning: some moved values might need to be renamed to avoid wrong references
+help: consider moving these statements after the if
|
LL ~ }
LL + let later_used_value = "A string value";
LL | | }
| |_____^
|
- = warning: Some moved values might need to be renamed to avoid wrong references
-help: consider moving the end statements out like this
+ = warning: some moved values might need to be renamed to avoid wrong references
+help: consider moving these statements after the if
|
LL ~ }
LL + let simple_examples = "I now identify as a &str :)";
LL | | };
| |_____^
|
- = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+ = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
|
LL ~ }
LL ~ x << 2;
LL | | }
| |_____^
|
- = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+ = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
|
LL ~ }
LL + x * 4
LL | if x == 17 { b = 1; a = 0x99; } else { a = 0x99; }
| ^^^^^^^^^^^
|
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
|
LL ~ if x == 17 { b = 1; a = 0x99; } else { }
LL + a = 0x99;