Skip to content

Commit d619e44

Browse files
Utilize entry.metadata over fs::symlink_metadata
1 parent 38f0b90 commit d619e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/tools/tidy/src/bins.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn check(path: &Path, bad: &mut bool) {
3535
return;
3636
}
3737

38-
let metadata = t!(fs::symlink_metadata(&file), &file);
38+
let metadata = t!(entry.metadata(), file);
3939
if metadata.mode() & 0o111 != 0 {
4040
let rel_path = file.strip_prefix(path).unwrap();
4141
let git_friendly_path = rel_path.to_str().unwrap().replace("\\", "/");

0 commit comments

Comments
 (0)