From effd7a76e627fdb5382d3092fb2b1f183d4ae90a Mon Sep 17 00:00:00 2001 From: "Carson M." Date: Sat, 23 Nov 2024 12:35:13 -0600 Subject: [PATCH] fix: here's why not to use nightly by default! --- ort-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ort-sys/build.rs b/ort-sys/build.rs index 92b098e..1ed7e1e 100644 --- a/ort-sys/build.rs +++ b/ort-sys/build.rs @@ -475,7 +475,7 @@ fn prepare_libort_dir() -> (PathBuf, bool) { match std::fs::rename(&temp_extract_dir, bin_extract_dir) { Ok(()) => {} Err(e) => match e.kind() { - io::ErrorKind::AlreadyExists | io::ErrorKind::DirectoryNotEmpty => { + io::ErrorKind::AlreadyExists => { let _ = fs::remove_dir_all(temp_extract_dir); } _ => panic!("failed to extract downloaded binaries: {e}")