Better handle blocks with just one expression

This commit is contained in:
Guillaume Gomez 2025-03-17 16:10:34 +01:00
parent 0e4b6c8124
commit 269b913bfd
6 changed files with 33 additions and 12 deletions

View file

@ -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