Remove two unused fields. (#425)
Co-authored-by: Michael Richardson <mcr@sandelman.ca>
This commit is contained in:
committed by
GitHub
parent
a1d7009e24
commit
535bc4b4cb
@@ -94,7 +94,6 @@ pub struct Transport {
|
|||||||
message: Option<String>,
|
message: Option<String>,
|
||||||
url: Option<Url>,
|
url: Option<Url>,
|
||||||
source: Option<Box<dyn error::Error + Send + Sync + 'static>>,
|
source: Option<Box<dyn error::Error + Send + Sync + 'static>>,
|
||||||
response: Option<Response>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extension to [`Result<Response, Error>`] for handling all status codes as [`Response`].
|
/// Extension to [`Result<Response, Error>`] for handling all status codes as [`Response`].
|
||||||
@@ -193,7 +192,6 @@ impl Error {
|
|||||||
message,
|
message,
|
||||||
url: None,
|
url: None,
|
||||||
source: None,
|
source: None,
|
||||||
response: None,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ pub struct Request {
|
|||||||
agent: Agent,
|
agent: Agent,
|
||||||
method: String,
|
method: String,
|
||||||
url: String,
|
url: String,
|
||||||
error_on_non_2xx: bool,
|
|
||||||
headers: Vec<Header>,
|
headers: Vec<Header>,
|
||||||
timeout: Option<time::Duration>,
|
timeout: Option<time::Duration>,
|
||||||
}
|
}
|
||||||
@@ -52,7 +51,6 @@ impl Request {
|
|||||||
method,
|
method,
|
||||||
url,
|
url,
|
||||||
headers: vec![],
|
headers: vec![],
|
||||||
error_on_non_2xx: true,
|
|
||||||
timeout: None,
|
timeout: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user