compiler/rust: drop "borrow of a value the compiler would automatically borrow"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-12-04 16:36:45 +01:00
parent 91e60e210a
commit 74aa12e5ab

View file

@ -249,7 +249,7 @@ impl<'a, N> DepthFirstSearch for ReachesDFS<'a, N> {
fn pre(&mut self, id: usize) -> Self::ChildIter { fn pre(&mut self, id: usize) -> Self::ChildIter {
if id == self.stop || self.reaches.contains(id) { if id == self.stop || self.reaches.contains(id) {
return (&[]).iter().cloned(); return [].iter().cloned();
} }
self.reaches.insert(id); self.reaches.insert(id);