Skip to content

Commit

Permalink
refactor(match range): use exclusive ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Jul 27, 2024
1 parent 8dfe34f commit 67adbf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/leetcode-api/src/leetcode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ mod leetcode_send {
403 => miette::bail!("Forbidden, maybe you not verify email or phone number"),
408 => miette::bail!("Request Time-out"),
429 => miette::bail!("Your submissions are too frequent."),
400..=499 => miette::bail!("Client error, HTTP Code: {}", resp.status()),
500..=599 => miette::bail!("Server error, HTTP Code: {}", resp.status()),
400..500 => miette::bail!("Client error, HTTP Code: {}", resp.status()),
500..600 => miette::bail!("Server error, HTTP Code: {}", resp.status()),
_ => {},
}

Expand Down

0 comments on commit 67adbf3

Please sign in to comment.