Skip to content

Commit feb370f

Browse files
committed
fix clippy warns on windows (not checked by CI)
1 parent a6b8eee commit feb370f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/clean.rs

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ where
226226
Err(ref e) if e.kind() == ErrorKind::PermissionDenied => {
227227
let m = t!(path.symlink_metadata());
228228
let mut p = m.permissions();
229+
// this os not unix, so clippy gives FP
230+
#[expect(clippy::permissions_set_readonly_false)]
229231
p.set_readonly(false);
230232
t!(fs::set_permissions(path, p));
231233
f(path).unwrap_or_else(|e| {

src/bootstrap/src/utils/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn symlink_dir(config: &Config, original: &Path, link: &Path) -> io::Result<
145145

146146
#[cfg(windows)]
147147
fn symlink_dir_inner(target: &Path, junction: &Path) -> io::Result<()> {
148-
junction::create(&target, &junction)
148+
junction::create(target, junction)
149149
}
150150
}
151151

0 commit comments

Comments
 (0)