mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
feat: Impl support for alternative registries (#1184)
Fixed #1168 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d4ffc68129
commit
01a87ac606
18 changed files with 779 additions and 132 deletions
|
@ -63,6 +63,13 @@ pub struct HttpError {
|
|||
err: reqwest::Error,
|
||||
}
|
||||
|
||||
impl HttpError {
|
||||
/// Returns true if the error is from [`Response::error_for_status`].
|
||||
pub fn is_status(&self) -> bool {
|
||||
self.err.is_status()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Inner {
|
||||
client: reqwest::Client,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue