Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit 0f881e2

Browse files
committed
clippy fix
1 parent 944b9a9 commit 0f881e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/cache/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ impl Cache {
7474
}
7575

7676
async fn is_session_bad(&self) -> bool {
77-
// i.e. self.get_user_info().contains_err(Error::CookieError)
78-
match self.get_user_info().await {
79-
Err(Error::CookieError) => true,
80-
_ => false
81-
}
77+
matches!(self.get_user_info().await, Err(Error::CookieError))
8278
}
8379

8480
async fn resp_to_json<T: DeserializeOwned>(&self, resp: Response) -> Result<T, Error> {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /