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();
params.insert("token", token);
Ok(reqwest::Client::new()
reqwest::Client::new()
.post(&url)
.form(&params)
.send()
@ -419,7 +419,7 @@ impl GrammalecteClient {
.map_err(Error::RequestSendSuggest)?
.json()
.await
.map_err(Error::SuggestDeserialize)?)
.map_err(Error::SuggestDeserialize)
}
}