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();
|
||||
params.insert("token", token);
|
||||
|
||||
Ok(reqwest::Client::new()
|
||||
reqwest::Client::new()
|
||||
.post(&url)
|
||||
.form(¶ms)
|
||||
.send()
|
||||
@ -419,7 +419,7 @@ impl GrammalecteClient {
|
||||
.map_err(Error::RequestSendSuggest)?
|
||||
.json()
|
||||
.await
|
||||
.map_err(Error::SuggestDeserialize)?)
|
||||
.map_err(Error::SuggestDeserialize)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user