Fix #728: fallback to copy when symlinking on windows (#763)

* Fix #728: fallback to copy when symlinking on windows

* Signature hmm?

* Squash warnings on windows

* Just don’t use generics here
This commit is contained in:
Félix Saparelli 2023-02-04 14:14:08 +13:00 committed by GitHub
parent f2fc37eea5
commit 6bc1fb4983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View file

@ -1,4 +1,4 @@
use std::{future::pending, io};
use std::io;
use super::tasks::AutoAbortJoinHandle;
use crate::errors::BinstallError;
@ -73,7 +73,7 @@ mod unix {
Ok(())
} else {
// Use pending() here for the same reason as above.
pending().await
std::future::pending().await
}
}