mirror of
https://github.com/actix/actix-web.git
synced 2024-11-23 18:11:11 +00:00
handle error during request creation
This commit is contained in:
parent
7bc0ace52d
commit
2072c933ba
1 changed files with 1 additions and 2 deletions
|
@ -316,8 +316,7 @@ impl ClientRequestBuilder {
|
|||
/// Set HTTP method of this request.
|
||||
#[inline]
|
||||
pub fn get_method(&mut self) -> &Method {
|
||||
let parts =
|
||||
parts(&mut self.request, &self.err).expect("cannot reuse request builder");
|
||||
let parts = self.request.as_ref().expect("cannot reuse request builder");
|
||||
&parts.method
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue