mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Run cargo fmt
This commit is contained in:
parent
8318035726
commit
7e285e1ef5
35 changed files with 190 additions and 45 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue