mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Use unreachable!(…)
This commit is contained in:
parent
f5531cc7fa
commit
1fbdef06aa
@ -169,7 +169,8 @@ impl App {
|
|||||||
|| match self.matches.value_of("color") {
|
|| match self.matches.value_of("color") {
|
||||||
Some("always") => true,
|
Some("always") => true,
|
||||||
Some("never") => false,
|
Some("never") => false,
|
||||||
_ => env::var_os("NO_COLOR").is_none() && self.interactive_output,
|
Some("auto") => env::var_os("NO_COLOR").is_none() && self.interactive_output,
|
||||||
|
_ => unreachable!("other values for --color are not allowed"),
|
||||||
},
|
},
|
||||||
paging_mode,
|
paging_mode,
|
||||||
term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
|
term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user