Skip to content

Commit

Permalink
Remove AllHighlightersDisabled variant from config
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeh committed Oct 5, 2024
1 parent 8891865 commit 8a0b0d2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/highlighter/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub struct CliOpts {

pub enum HighlighterConfigNew {
AllHighlightersEnabled,
AllHighlightersDisabled,
SomeHighlightersEnabled,
SomeHighlightersDisabled,
Mismatch,
Expand Down Expand Up @@ -66,16 +65,11 @@ impl HighlighterGroups {
pub const fn all_enabled() -> Self {
Self::new_with_value(true)
}

pub const fn all_disabled() -> Self {
Self::new_with_value(false)
}
}

pub const fn try_get_highlight_groups(cli: CliOpts) -> Result<HighlighterGroups, ConfigError> {
match determine_highlighter_type(cli) {
AllHighlightersEnabled => Ok(HighlighterGroups::all_enabled()),
AllHighlightersDisabled => Ok(HighlighterGroups::all_disabled()),
SomeHighlightersEnabled => Ok(HighlighterGroups {
numbers: cli.enable_numbers,
uuids: cli.enable_uuids,
Expand Down

0 comments on commit 8a0b0d2

Please sign in to comment.