mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Fix clippy::mut_mut (pedantic)
“this expression mutably borrows a mutable reference. Consider reborrowing” https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
fb545551f8
commit
348ff509c0
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ fn normalize_imports(imports: Vec<AnnotatedImport>) -> ImportBlock {
|
||||||
entry.inline.push(comment.value);
|
entry.inline.push(comment.value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let entry = &mut block
|
let entry = block
|
||||||
.import_from_as
|
.import_from_as
|
||||||
.entry((
|
.entry((
|
||||||
ImportFromData { module, level },
|
ImportFromData { module, level },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue