mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 19:32:25 +01:00
Remove cargo feature
This commit is contained in:
12
src/theme.rs
12
src/theme.rs
@@ -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 {
|
||||
|
Reference in New Issue
Block a user