|
|
|
@ -115,7 +115,7 @@ async fn download(
|
|
|
|
|
Ok(())
|
|
|
|
|
})
|
|
|
|
|
.await
|
|
|
|
|
.map_err(|e| Error::Io(std::io::Error::new(std::io::ErrorKind::Other, e.to_string())))?
|
|
|
|
|
.map_err(|e| Error::Io(std::io::Error::other(e.to_string())))?
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[command]
|
|
|
|
@ -157,7 +157,7 @@ async fn upload(
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.await
|
|
|
|
|
.map_err(|e| Error::Io(std::io::Error::new(std::io::ErrorKind::Other, e.to_string())))?
|
|
|
|
|
.map_err(|e| Error::Io(std::io::Error::other(e.to_string())))?
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn file_to_body(channel: Channel<ProgressPayload>, file: File, file_len: u64) -> reqwest::Body {
|
|
|
|
|