diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index af676ed87d..b713f5b232 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -2622,7 +2622,7 @@ impl<'a> Traversal<'a> { ) } - pub fn advance_sibling(&mut self) -> bool { + pub fn advance_to_sibling(&mut self) -> bool { while let Some(entry) = self.cursor.item() { self.cursor.seek_forward( &TraversalTarget::PathSuccessor(&entry.path), @@ -2703,7 +2703,7 @@ impl<'a> Iterator for ChildEntriesIter<'a> { fn next(&mut self) -> Option { if let Some(item) = self.traversal.entry() { if item.path.starts_with(&self.parent_path) { - self.traversal.advance_sibling(); + self.traversal.advance_to_sibling(); return Some(item); } }