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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user