Skip to content

Commit

Permalink
chore: deny clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Aug 15, 2024
1 parent b83edaf commit 52c9264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bathbot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ twilight-standby = { workspace = true }
url = { version = "2.4", default-features = false }

[features]
default = ["full"]
default = []
full = ["global_slash", "matchlive", "notify_osutrack", "osutracking", "server", "twitch", "twitchtracking"]

global_slash = []
Expand Down
2 changes: 2 additions & 0 deletions bathbot/src/active/impls/single_score.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ fn apply_settings(
.checked_sub(1)
.and_then(|idx| settings.values.get(idx));

// A little more readable this way
#[allow(clippy::nonminimal_bool)]
if !(ValueKind::from_setting(last) == ValueKind::MapRankedDate
&& data.map.ranked_date().is_none())
&& !(ValueKind::from_setting(last) == ValueKind::Ratio && hide_ratio())
Expand Down

0 comments on commit 52c9264

Please sign in to comment.