mirror of https://github.com/astral-sh/ruff
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
|
|
@ -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…
Reference in New Issue