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

@ -9,6 +9,9 @@ fn main() {
//~^ string_to_string
let _ = variable2.cloned();
//~^ string_to_string
#[rustfmt::skip]
let _ = variable2.cloned();
//~^ string_to_string
let _ = vec![String::new()].iter().cloned().collect::<Vec<_>>();
//~^ string_to_string