Skip to content

Commit

Permalink
Fix for older versions of Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Feb 28, 2020
1 parent 81dee25 commit d05e717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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())
Expand Down

0 comments on commit d05e717

Please sign in to comment.