From 8e11796dc5fcaaeba7b4cc2e0096ed459ec9b899 Mon Sep 17 00:00:00 2001 From: Ayomide Bamidele Date: Mon, 29 Mar 2021 12:56:02 +0100 Subject: formatting fix --- crates/ide/src/folding_ranges.rs | 2 +- crates/rust-analyzer/src/to_proto.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ide/src/folding_ranges.rs b/crates/ide/src/folding_ranges.rs index 8b8a2cc38..153726ce8 100644 --- a/crates/ide/src/folding_ranges.rs +++ b/crates/ide/src/folding_ranges.rs @@ -268,7 +268,7 @@ mod tests { FoldKind::ArgList => "arglist", FoldKind::Region => "region", FoldKind::Consts => "consts", - FoldKind::Statics => "statics" + FoldKind::Statics => "statics", }; assert_eq!(kind, &attr.unwrap()); } diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index a3799880f..e297a72e6 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -492,7 +492,11 @@ pub(crate) fn folding_range( FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region), - FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Consts | FoldKind::Statics => None, + FoldKind::Mods + | FoldKind::Block + | FoldKind::ArgList + | FoldKind::Consts + | FoldKind::Statics => None, }; let range = range(line_index, fold.range); -- cgit v1.2.3