aboutsummaryrefslogtreecommitdiff
path: root/nix-rust/src/error.rs
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-04 21:01:16 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-10 13:37:23 +0100
commit14aa0c3259a7997d7273f3b3ce1a41af03293832 (patch)
treee70fb994aedc72ced1e2f5ec0ca0368a3e9967ef /nix-rust/src/error.rs
parenta6f0bef0a77ccc2c03d85a8e5841e830e52f5642 (diff)
Use hyper directly instead of reqwest
Diffstat (limited to 'nix-rust/src/error.rs')
-rw-r--r--nix-rust/src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/nix-rust/src/error.rs b/nix-rust/src/error.rs
index 4defc646d..1066a266e 100644
--- a/nix-rust/src/error.rs
+++ b/nix-rust/src/error.rs
@@ -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)
}
}