diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
commit | c23a457e72abe608715ac76f076f47dc42af07a5 (patch) | |
tree | 2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /vendor/snapbox/src/path.rs | |
parent | Releasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip |
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/snapbox/src/path.rs')
-rw-r--r-- | vendor/snapbox/src/path.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/snapbox/src/path.rs b/vendor/snapbox/src/path.rs index 9cd1e3f94..523b03822 100644 --- a/vendor/snapbox/src/path.rs +++ b/vendor/snapbox/src/path.rs @@ -40,8 +40,8 @@ impl PathFixture { #[cfg(feature = "path")] pub fn mutable_at(target: &std::path::Path) -> Result<Self, crate::Error> { - let _ = std::fs::remove_dir_all(&target); - std::fs::create_dir_all(&target) + let _ = std::fs::remove_dir_all(target); + std::fs::create_dir_all(target) .map_err(|e| format!("Failed to create {}: {}", target.display(), e))?; Ok(Self(PathFixtureInner::MutablePath(target.to_owned()))) } @@ -577,7 +577,7 @@ fn copy_stats( dest: &std::path::Path, ) -> Result<(), std::io::Error> { let src_mtime = filetime::FileTime::from_last_modification_time(source_meta); - filetime::set_file_mtime(&dest, src_mtime)?; + filetime::set_file_mtime(dest, src_mtime)?; Ok(()) } |