Skip to content

Commit

Permalink
Fix missing arg to color choice
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Apr 7, 2024
1 parent e724020 commit 80640c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wright/src/source_tracking/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use std::sync::mpsc;
use std::path::PathBuf;
use fs4::FileExt;
use memmap2::Mmap;
use termcolor::ColorChoice;

/// Amount of time before we should warn the user about locking the file taking too long.
pub const FILE_LOCK_WARNING_TIME: Duration = Duration::from_secs(5);
Expand Down Expand Up @@ -97,7 +98,7 @@ impl Source {
);

// Wrap the message in a warning diagnostic and print it.
Diagnostic::warning(message).print()?;
Diagnostic::warning(message).print(ColorChoice::Auto)?;
}

// Handle any io errors locking the file by returning them.
Expand Down

0 comments on commit 80640c6

Please sign in to comment.