mirror of https://github.com/zkat/miette.git
fix(colors): handler_opts.color(false) should disable color (#133)
This commit is contained in:
parent
77cdfc45c9
commit
209275d437
|
|
@ -150,7 +150,9 @@ impl MietteHandlerOpts {
|
|||
None if supports_unicode::on(Stream::Stderr) => ThemeCharacters::unicode(),
|
||||
None => ThemeCharacters::ascii(),
|
||||
};
|
||||
let styles = if self.rgb_colors == Some(true) {
|
||||
let styles = if self.color == Some(false) {
|
||||
ThemeStyles::none()
|
||||
} else if self.rgb_colors == Some(true) {
|
||||
ThemeStyles::rgb()
|
||||
} else if self.ansi_colors == Some(true) {
|
||||
ThemeStyles::ansi()
|
||||
|
|
|
|||
Loading…
Reference in New Issue