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:
Gwen Lg 2024-06-13 23:20:19 +02:00
parent 738ece6f92
commit 1b31a5d060

View File

@ -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(&params) .form(&params)
.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)
} }
} }