mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-04 20:37:56 +00:00
style: Fix rustfmt formatting warnings in CI (#432)
This commit is contained in:
parent
90c8f897af
commit
a56991cbc4
@ -46,10 +46,7 @@ fn shows_behind_with_count() -> io::Result<()> {
|
||||
.arg(repo_dir)
|
||||
.output()?;
|
||||
let actual = String::from_utf8(output.stdout).unwrap();
|
||||
let expected = Color::Red
|
||||
.bold()
|
||||
.paint(format!("[{}] ", "⇣1"))
|
||||
.to_string();
|
||||
let expected = Color::Red.bold().paint(format!("[{}] ", "⇣1")).to_string();
|
||||
|
||||
assert_eq!(expected, actual);
|
||||
|
||||
@ -101,10 +98,7 @@ fn shows_ahead_with_count() -> io::Result<()> {
|
||||
.arg(repo_dir)
|
||||
.output()?;
|
||||
let actual = String::from_utf8(output.stdout).unwrap();
|
||||
let expected = Color::Red
|
||||
.bold()
|
||||
.paint(format!("[{}] ", "⇡1"))
|
||||
.to_string();
|
||||
let expected = Color::Red.bold().paint(format!("[{}] ", "⇡1")).to_string();
|
||||
|
||||
assert_eq!(expected, actual);
|
||||
|
||||
|
@ -119,10 +119,7 @@ fn with_virtual_env() -> io::Result<()> {
|
||||
.output()?;
|
||||
let actual = String::from_utf8(output.stdout).unwrap();
|
||||
|
||||
let expected = format!(
|
||||
"via {} ",
|
||||
Color::Yellow.bold().paint("🐍 v3.6.9(my_venv)")
|
||||
);
|
||||
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.6.9(my_venv)"));
|
||||
assert_eq!(expected, actual);
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user