summaryrefslogtreecommitdiff
path: root/src/color.rs
diff options
context:
space:
mode:
authorxxanqw <[email protected]>2025-11-30 00:39:08 +0200
committerxxanqw <[email protected]>2025-11-30 00:39:08 +0200
commit511553a4a2edc051f8a9f0826432147aac4b0032 (patch)
tree3771456e22362f2123c62e5a2c055d2ac9db3850 /src/color.rs
parentd0350658ac3df17e1b4661cbbb103063721d5f31 (diff)
downloadmikusays-c-511553a4a2edc051f8a9f0826432147aac4b0032.tar.gz
mikusays-c-511553a4a2edc051f8a9f0826432147aac4b0032.zip
cargo fmt
Diffstat (limited to 'src/color.rs')
-rw-r--r--src/color.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/color.rs b/src/color.rs
index 809c66f..548c222 100644
--- a/src/color.rs
+++ b/src/color.rs
@@ -506,9 +506,9 @@ pub fn detect_color_mode() -> ColorMode {
}
// Early checks
- if std::env::var("COLORTERM").is_ok_and(|colorterm| {
- colorterm.contains("truecolor") || colorterm.contains("24bit")
- }) {
+ if std::env::var("COLORTERM")
+ .is_ok_and(|colorterm| colorterm.contains("truecolor") || colorterm.contains("24bit"))
+ {
return ColorMode::Truecolor;
}