diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 21:51:17 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 21:51:17 +0800 |
| commit | a95911b1906eae69afca5520449d4e5d839d6a0c (patch) | |
| tree | eb4c2b239b8e4871074c74bc7b1e22cdabd31519 /src | |
| parent | e0674631188930da429362b27ba70b2a544e4648 (diff) | |
chore: remove needless returns
revert: chore: allow needless return
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/connector/connectors/httpconnector.rs | 6 | ||||
| -rw-r--r-- | src/client/main.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/connector/connectors/httpconnector.rs b/src/client/connector/connectors/httpconnector.rs index 28ff4a0..f3d9ef9 100644 --- a/src/client/connector/connectors/httpconnector.rs +++ b/src/client/connector/connectors/httpconnector.rs @@ -45,7 +45,7 @@ impl HTTPConnector { Ok(resp) => match resp.status() { StatusCode::TOO_MANY_REQUESTS => { sleep(Duration::from_secs(5)); - return self.update(); + self.update() } status => { if !status.is_success() { @@ -53,11 +53,11 @@ impl HTTPConnector { } match resp.text() { Ok(text) => Result::Ok(text), - Err(e) => return Result::Err(Err::Reqwest(e)), + Err(e) => Result::Err(Err::Reqwest(e)), } } }, - Err(e) => return Result::Err(Err::Reqwest(e)), + Err(e) => Result::Err(Err::Reqwest(e)), } } } diff --git a/src/client/main.rs b/src/client/main.rs index 75c017c..0dc1e53 100644 --- a/src/client/main.rs +++ b/src/client/main.rs @@ -1,4 +1,4 @@ -#![allow(incomplete_features, clippy::needless_return)] +#![allow(incomplete_features)] #![feature(associated_type_defaults, never_type, lazy_type_alias)] use crate::client::Client; |
