Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
fix(clippy): redundant_guards
Browse files Browse the repository at this point in the history
  • Loading branch information
DumpTime committed Oct 8, 2023
1 parent f3cf3db commit 70d8a38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/bind/campus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ fn check_auth_status<D, R>(resp: &CommonResponse<D, R>) -> Result<bool> {
if let Some(ref code) = resp.biz_code {
let code = code.parse::<i64>();
match code {
Ok(v) if v == 10010 => return Err(Error::AuthUserNotFound),
Ok(v) if v == 10011 => return Err(Error::AuthDeviceChanged),
Ok(10010) => return Err(Error::AuthUserNotFound),
Ok(10011) => return Err(Error::AuthDeviceChanged),
// Ignore
_ => {}
}
Expand Down

0 comments on commit 70d8a38

Please sign in to comment.