chore: Fix warnings for Rust 1.89 (#32378)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
4ff41ba62e
commit
72bcb0beb7
32 changed files with 102 additions and 95 deletions
|
@ -2566,7 +2566,7 @@ impl Snapshot {
|
|||
include_dirs: bool,
|
||||
include_ignored: bool,
|
||||
start_offset: usize,
|
||||
) -> Traversal {
|
||||
) -> Traversal<'_> {
|
||||
let mut cursor = self.entries_by_path.cursor(&());
|
||||
cursor.seek(
|
||||
&TraversalTarget::Count {
|
||||
|
@ -2593,19 +2593,19 @@ impl Snapshot {
|
|||
include_dirs: bool,
|
||||
include_ignored: bool,
|
||||
path: &Path,
|
||||
) -> Traversal {
|
||||
) -> Traversal<'_> {
|
||||
Traversal::new(self, include_files, include_dirs, include_ignored, path)
|
||||
}
|
||||
|
||||
pub fn files(&self, include_ignored: bool, start: usize) -> Traversal {
|
||||
pub fn files(&self, include_ignored: bool, start: usize) -> Traversal<'_> {
|
||||
self.traverse_from_offset(true, false, include_ignored, start)
|
||||
}
|
||||
|
||||
pub fn directories(&self, include_ignored: bool, start: usize) -> Traversal {
|
||||
pub fn directories(&self, include_ignored: bool, start: usize) -> Traversal<'_> {
|
||||
self.traverse_from_offset(false, true, include_ignored, start)
|
||||
}
|
||||
|
||||
pub fn entries(&self, include_ignored: bool, start: usize) -> Traversal {
|
||||
pub fn entries(&self, include_ignored: bool, start: usize) -> Traversal<'_> {
|
||||
self.traverse_from_offset(true, true, include_ignored, start)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue