Better handle blocks with just one expression
This commit is contained in:
parent
0e4b6c8124
commit
269b913bfd
6 changed files with 33 additions and 12 deletions
|
|
@ -15,7 +15,6 @@ fn main() {
|
|||
});
|
||||
//~^^ string_to_string
|
||||
|
||||
// Should not lint.
|
||||
let x = Some(String::new());
|
||||
let _ = x.unwrap_or_else(|| v.to_string());
|
||||
//~^ string_to_string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue