Run cargo fmt

This commit is contained in:
Amos Wenger 2022-07-20 15:06:15 +02:00
parent 8318035726
commit 7e285e1ef5
35 changed files with 190 additions and 45 deletions

View file

@ -1042,7 +1042,11 @@ fn generic_parents(parent: &SyntaxNode) -> Vec<GenericParent> {
}
/// checks if relevant var is used with `&mut` access inside body
fn has_exclusive_usages(ctx: &AssistContext<'_>, usages: &LocalUsages, body: &FunctionBody) -> bool {
fn has_exclusive_usages(
ctx: &AssistContext<'_>,
usages: &LocalUsages,
body: &FunctionBody,
) -> bool {
usages
.iter()
.filter(|reference| body.contains_range(reference.range))