formatting fix

This commit is contained in:
Ayomide Bamidele 2021-03-29 12:56:02 +01:00
parent a813062ed2
commit 8e11796dc5
2 changed files with 6 additions and 2 deletions

View File

@ -268,7 +268,7 @@ fn check(ra_fixture: &str) {
FoldKind::ArgList => "arglist",
FoldKind::Region => "region",
FoldKind::Consts => "consts",
FoldKind::Statics => "statics"
FoldKind::Statics => "statics",
};
assert_eq!(kind, &attr.unwrap());
}

View File

@ -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);