forked from pierre/GrammalecteClient
fix lint clippy::needless_question_mark
for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
This commit is contained in:
parent
738ece6f92
commit
1b31a5d060
@ -411,7 +411,7 @@ impl GrammalecteClient {
|
|||||||
let mut params = HashMap::new();
|
let mut params = HashMap::new();
|
||||||
params.insert("token", token);
|
params.insert("token", token);
|
||||||
|
|
||||||
Ok(reqwest::Client::new()
|
reqwest::Client::new()
|
||||||
.post(&url)
|
.post(&url)
|
||||||
.form(¶ms)
|
.form(¶ms)
|
||||||
.send()
|
.send()
|
||||||
@ -419,7 +419,7 @@ impl GrammalecteClient {
|
|||||||
.map_err(Error::RequestSendSuggest)?
|
.map_err(Error::RequestSendSuggest)?
|
||||||
.json()
|
.json()
|
||||||
.await
|
.await
|
||||||
.map_err(Error::SuggestDeserialize)?)
|
.map_err(Error::SuggestDeserialize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user