Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613)
Related: #36577 Release Notes: - N/A
This commit is contained in:
@@ -42,8 +42,8 @@ impl<'a> GitTraversal<'a> {
|
||||
// other_repo/
|
||||
// .git/
|
||||
// our_query.txt
|
||||
let mut query = path.ancestors();
|
||||
while let Some(query) = query.next() {
|
||||
let query = path.ancestors();
|
||||
for query in query {
|
||||
let (_, snapshot) = self
|
||||
.repo_root_to_snapshot
|
||||
.range(Path::new("")..=query)
|
||||
|
||||
Reference in New Issue
Block a user