Skip to content

Commit a8b69b7

Browse files
build.rs: fix for rustc < 1.70
1 parent df6ac78 commit a8b69b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn can_hardlink(src: &Path, dst: &Path) -> bool {
3535
let probe_src = match fs::read_dir(src).ok().and_then(|mut d| {
3636
d.find(|e| {
3737
e.as_ref()
38-
.is_ok_and(|e| e.file_type().is_ok_and(|t| t.is_file()))
38+
.map_or(false, |e| e.file_type().map_or(false, |t| t.is_file())) // TODO when MSRV=1.70: .is_ok_and(|e| e.file_type().is_ok_and(|t| t.is_file()))
3939
})
4040
}) {
4141
Some(Ok(entry)) => entry.path(),

0 commit comments

Comments
 (0)