diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/walkdir/src/error.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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(), |