mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 02:30:02 +00:00
Refactor: Extract new crate binstalk-fetchers
(#1291)
To reduce `binstalk` codegen and enable better reuse. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
623f7ff4ed
commit
76c72469eb
19 changed files with 1008 additions and 122 deletions
|
@ -60,8 +60,11 @@ impl<T> Future for AutoAbortJoinHandle<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> AutoAbortJoinHandle<Result<T, BinstallError>> {
|
||||
impl<T, E> AutoAbortJoinHandle<Result<T, E>>
|
||||
where
|
||||
E: Into<BinstallError>,
|
||||
{
|
||||
pub async fn flattened_join(self) -> Result<T, BinstallError> {
|
||||
self.await?
|
||||
self.await?.map_err(Into::into)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue