diff options
Diffstat (limited to 'vendor/walkdir/src/error.rs')
-rw-r--r-- | vendor/walkdir/src/error.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/vendor/walkdir/src/error.rs b/vendor/walkdir/src/error.rs index 9e25a075e..3342d9b75 100644 --- a/vendor/walkdir/src/error.rs +++ b/vendor/walkdir/src/error.rs @@ -164,10 +164,7 @@ impl Error { pb: PathBuf, err: io::Error, ) -> Self { - Error { - depth: depth, - inner: ErrorInner::Io { path: Some(pb), err: err }, - } + Error { depth, inner: ErrorInner::Io { path: Some(pb), err } } } pub(crate) fn from_entry(dent: &DirEntry, err: io::Error) -> Self { @@ -175,13 +172,13 @@ impl Error { depth: dent.depth(), inner: ErrorInner::Io { path: Some(dent.path().to_path_buf()), - err: err, + err, }, } } pub(crate) fn from_io(depth: usize, err: io::Error) -> Self { - Error { depth: depth, inner: ErrorInner::Io { path: None, err: err } } + Error { depth, inner: ErrorInner::Io { path: None, err } } } pub(crate) fn from_loop( @@ -190,7 +187,7 @@ impl Error { child: &Path, ) -> Self { Error { - depth: depth, + depth, inner: ErrorInner::Loop { ancestor: ancestor.to_path_buf(), child: child.to_path_buf(), |