Remove cargo feature

This commit is contained in:
Tau Gärtli committed 2024-08-16 14:13:18 +02:00
1 parent 6498615f5f
commit e8ca6ec7c3
2 files changed
+2 -15

No files matched your search

-12
View File
@@ -124,7 +124,6 @@ trait ColorSchemeDetector {
struct TerminalColorSchemeDetector;
#[cfg(feature = "detect-color-scheme")]
impl ColorSchemeDetector for TerminalColorSchemeDetector {
fn should_detect(&self) -> bool {
// Querying the terminal for its colors via OSC 10 / OSC 11 requires "exclusive" access
@@ -148,17 +147,6 @@ impl ColorSchemeDetector for TerminalColorSchemeDetector {
}
}
#[cfg(not(feature = "detect-color-scheme"))]
impl ColorSchemeDetector for TerminalColorSchemeDetector {
fn should_detect(&self) -> bool {
false
}
fn detect(&self) -> Option<ColorScheme> {
None
}
}
#[cfg(test)]
impl ColorSchemeDetector for Option<ColorScheme> {
fn should_detect(&self) -> bool {