Skip to content

Commit 8e11796

Browse files
committed
formatting fix
1 parent a813062 commit 8e11796

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/ide/src/folding_ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ mod tests {
268268
FoldKind::ArgList => "arglist",
269269
FoldKind::Region => "region",
270270
FoldKind::Consts => "consts",
271-
FoldKind::Statics => "statics"
271+
FoldKind::Statics => "statics",
272272
};
273273
assert_eq!(kind, &attr.unwrap());
274274
}

crates/rust-analyzer/src/to_proto.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,11 @@ pub(crate) fn folding_range(
492492
FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment),
493493
FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports),
494494
FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region),
495-
FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Consts | FoldKind::Statics => None,
495+
FoldKind::Mods
496+
| FoldKind::Block
497+
| FoldKind::ArgList
498+
| FoldKind::Consts
499+
| FoldKind::Statics => None,
496500
};
497501

498502
let range = range(line_index, fold.range);

0 commit comments

Comments
 (0)