From 74aa12e5abbe41b9eef683062500402e2470812b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 4 Dec 2025 16:36:45 +0100 Subject: [PATCH] compiler/rust: drop "borrow of a value the compiler would automatically borrow" Part-of: --- src/compiler/rust/cfg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/rust/cfg.rs b/src/compiler/rust/cfg.rs index ffa654d3566..e3d328463e3 100644 --- a/src/compiler/rust/cfg.rs +++ b/src/compiler/rust/cfg.rs @@ -249,7 +249,7 @@ impl<'a, N> DepthFirstSearch for ReachesDFS<'a, N> { fn pre(&mut self, id: usize) -> Self::ChildIter { if id == self.stop || self.reaches.contains(id) { - return (&[]).iter().cloned(); + return [].iter().cloned(); } self.reaches.insert(id);