We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
reserved_room_for_brace
1 parent 0eecc48 commit 0c5ee8eCopy full SHA for 0c5ee8e
src/imports.rs
@@ -1139,6 +1139,8 @@ impl Rewrite for UseTree {
1139
if next_segment.is_some() {
1140
rewritten_segment.push_str("::");
1141
}
1142
+ // If `next_segment` is a list, we should check overflow with `curr_segment` with
1143
+ // open brace: `...::curr_segment{`. So, 1 will be added to a shape.
1144
let reserved_room_for_brace = match next_segment.map(|s| &s.kind) {
1145
Some(UseSegmentKind::List(_)) => "{".len(),
1146
_ => 0,
0 commit comments