mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
Fix for older versions of Rust
This commit is contained in:
parent
81dee25438
commit
d05e7171d4
1 changed files with 2 additions and 1 deletions
|
@ -303,7 +303,7 @@ fn spawn_senders(
|
|||
}
|
||||
|
||||
let entry = match entry_o {
|
||||
Ok(e) if e.depth() == 0 => {
|
||||
Ok(ref e) if e.depth() == 0 => {
|
||||
// Skip the root directory entry.
|
||||
return ignore::WalkState::Continue;
|
||||
}
|
||||
|
@ -316,6 +316,7 @@ fn spawn_senders(
|
|||
if io_error.kind() == io::ErrorKind::NotFound
|
||||
&& path
|
||||
.symlink_metadata()
|
||||
.ok()
|
||||
.map_or(false, |m| m.file_type().is_symlink()) =>
|
||||
{
|
||||
DirEntry::BrokenSymlink(path.to_owned())
|
||||
|
|
Loading…
Reference in a new issue