From 1b31a5d06063087a9cb8f326ef49087c3addfe17 Mon Sep 17 00:00:00 2001 From: Gwen Lg Date: Thu, 13 Jun 2024 23:20:19 +0200 Subject: [PATCH] fix lint clippy::needless_question_mark for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7370b02..f631c68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) } }