diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-11-12 21:43:51 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-11-13 15:08:49 +0300 |
| commit | cdd948cbc05f00bcf072808c8659b5fc6e0ab196 (patch) | |
| tree | ddec85c582302e2763739fba5c3a2432916adba6 /src/bootstrap | |
| parent | dad667b6ac5a4d0ed806d53932f5491df418bfaa (diff) | |
| download | rust-cdd948cbc05f00bcf072808c8659b5fc6e0ab196.tar.gz rust-cdd948cbc05f00bcf072808c8659b5fc6e0ab196.zip | |
fix clippy warns on windows (not checked by CI)
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/clean.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/src/utils/helpers.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/clean.rs b/src/bootstrap/src/core/build_steps/clean.rs index 040690623a1..d857de96cce 100644 --- a/src/bootstrap/src/core/build_steps/clean.rs +++ b/src/bootstrap/src/core/build_steps/clean.rs @@ -226,6 +226,8 @@ where Err(ref e) if e.kind() == ErrorKind::PermissionDenied => { let m = t!(path.symlink_metadata()); let mut p = m.permissions(); + // this os not unix, so clippy gives FP + #[expect(clippy::permissions_set_readonly_false)] p.set_readonly(false); t!(fs::set_permissions(path, p)); f(path).unwrap_or_else(|e| { diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index 7162007e9f0..3fb2330469a 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -145,7 +145,7 @@ pub fn symlink_dir(config: &Config, original: &Path, link: &Path) -> io::Result< #[cfg(windows)] fn symlink_dir_inner(target: &Path, junction: &Path) -> io::Result<()> { - junction::create(&target, &junction) + junction::create(target, junction) } } |
