mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
refactor: replace ansi_term with nu_ansi_term (#4339)
This commit is contained in:
@@ -470,7 +470,7 @@ fn git_status_wsl(_context: &Context, _conf: &GitStatusConfig) -> Option<String>
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use ansi_term::{ANSIStrings, Color};
|
||||
use nu_ansi_term::{AnsiStrings, Color};
|
||||
use std::ffi::OsStr;
|
||||
use std::fs::{self, File};
|
||||
use std::io::{self, prelude::*};
|
||||
@@ -832,7 +832,7 @@ mod tests {
|
||||
.collect();
|
||||
let expected = Some(format!(
|
||||
"{} ",
|
||||
ANSIStrings(&[
|
||||
AnsiStrings(&[
|
||||
Color::Red.bold().paint("[+"),
|
||||
Color::Green.paint("1"),
|
||||
Color::Red.bold().paint("]"),
|
||||
|
||||
Reference in New Issue
Block a user