1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

Use hyper directly instead of reqwest

This commit is contained in:
Eelco Dolstra 2019-12-04 21:01:16 +01:00
parent a6f0bef0a7
commit 14aa0c3259
5 changed files with 21 additions and 373 deletions

View file

@ -18,7 +18,7 @@ pub enum Error {
BadNarField(String),
BadExecutableField,
IOError(std::io::Error),
HttpError(reqwest::Error),
HttpError(hyper::error::Error),
Misc(String),
Foreign(CppException),
}
@ -29,8 +29,8 @@ impl From<std::io::Error> for Error {
}
}
impl From<reqwest::Error> for Error {
fn from(err: reqwest::Error) -> Self {
impl From<hyper::error::Error> for Error {
fn from(err: hyper::error::Error) -> Self {
Error::HttpError(err)
}
}