mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
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:
parent
91e60e210a
commit
74aa12e5ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue