From 348ff509c0326e360bb461d1a26f89f3f9fbb6ac Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 21 Nov 2022 18:20:21 -0800 Subject: [PATCH] Fix clippy::mut_mut (pedantic) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “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 --- src/isort/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isort/mod.rs b/src/isort/mod.rs index 054ab7cf1c..84400a99c6 100644 --- a/src/isort/mod.rs +++ b/src/isort/mod.rs @@ -204,7 +204,7 @@ fn normalize_imports(imports: Vec) -> ImportBlock { entry.inline.push(comment.value); } } else { - let entry = &mut block + let entry = block .import_from_as .entry(( ImportFromData { module, level },