Skip to content
Myr

Fix for older versions of Rust

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 81dee25 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/walk.rs+2 added-1 removed
301 unmodified lines
302 return ignore::WalkState::Quit;303 }304305 let entry = match entry_o {306 Ok(e) if e.depth() == 0 => {306 Ok(ref e) if e.depth() == 0 => {307 // Skip the root directory entry.308 return ignore::WalkState::Continue;309 }310 Ok(e) => DirEntry::Normal(e),
4 unmodified lines
315 ignore::Error::Io(io_error)316 if io_error.kind() == io::ErrorKind::NotFound317 && path318 .symlink_metadata()319 .ok()320 .map_or(false, |m| m.file_type().is_symlink()) =>321 {322 DirEntry::BrokenSymlink(path.to_owned())323 }
119 unmodified lines