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:
parent
41e28a7185
commit
ec8106d1db
20 changed files with 35 additions and 32 deletions
|
@ -1397,8 +1397,8 @@ fn possible_open_target(
|
|||
let found_entry = worktree
|
||||
.update(cx, |worktree, _| {
|
||||
let worktree_root = worktree.abs_path();
|
||||
let mut traversal = worktree.traverse_from_path(true, true, false, "".as_ref());
|
||||
while let Some(entry) = traversal.next() {
|
||||
let traversal = worktree.traverse_from_path(true, true, false, "".as_ref());
|
||||
for entry in traversal {
|
||||
if let Some(path_in_worktree) = worktree_paths_to_check
|
||||
.iter()
|
||||
.find(|path_to_check| entry.path.ends_with(&path_to_check.path))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue