Skip to content

Commit 27e359b

Browse files
author
Charly Lersteau
committed
Preserve braces in use std::fmt::{self}; #120
1 parent 3819b84 commit 27e359b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ impl Printer {
751751
self.word("{}");
752752
} else if use_group.items.len() == 1
753753
&& match &use_group.items[0] {
754+
UseTree::Name(use_name) => use_name.ident != "self",
754755
UseTree::Rename(use_rename) => use_rename.ident != "self",
755756
_ => true,
756757
}

0 commit comments

Comments
 (0)