Remove cargo feature

This commit is contained in:
Tau Gärtli
2024-04-16 14:43:35 +02:00
parent 6498615f5f
commit e8ca6ec7c3
2 changed files with 2 additions and 15 deletions

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 {