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:
parent
a6f0bef0a7
commit
14aa0c3259
5 changed files with 21 additions and 373 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue