fix: clippy lints

This commit is contained in:
Amaan Qureshi 2024-11-16 03:20:59 -05:00
parent 78e5144f3f
commit 274e60a523
No known key found for this signature in database
GPG key ID: E67890ADC4227273
10 changed files with 17 additions and 22 deletions

View file

@ -307,9 +307,8 @@ fn write_color(buffer: &mut String, color: Color) {
}
fn terminal_supports_truecolor() -> bool {
std::env::var("COLORTERM").map_or(false, |truecolor| {
truecolor == "truecolor" || truecolor == "24bit"
})
std::env::var("COLORTERM")
.is_ok_and(|truecolor| truecolor == "truecolor" || truecolor == "24bit")
}
fn closest_xterm_color(red: u8, green: u8, blue: u8) -> Color {