fix(highlighter): ugh, missed another spot

This commit is contained in:
Kat Marchán 2024-02-03 20:25:23 -08:00
parent 3747fccf8d
commit ab7c066e76
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ impl MietteHighlighter {
impl Default for MietteHighlighter {
#[cfg(feature = "syntect-highlighter")]
fn default() -> Self {
use is_terminal::IsTerminal;
use std::io::IsTerminal;
match std::env::var("NO_COLOR") {
_ if !std::io::stdout().is_terminal() || !std::io::stderr().is_terminal() => {
//TODO: should use ANSI styling instead of 24-bit truecolor here