mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-08 22:32:26 +01:00
Use nu-ansi-term
instead of ansi_term
The `nu-ansi-term` crate is a fork of `ansi_term` which is maintained by the Nushell project.
This commit is contained in:
@@ -43,7 +43,7 @@ impl From<String> for Error {
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
pub fn default_error_handler(error: &Error, output: &mut dyn Write) {
|
||||
use ansi_term::Colour::Red;
|
||||
use nu_ansi_term::Color::Red;
|
||||
|
||||
match error {
|
||||
Error::Io(ref io_error) if io_error.kind() == ::std::io::ErrorKind::BrokenPipe => {
|
||||
|
Reference in New Issue
Block a user