1
0
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:
Zhenhui Xie 2019-09-27 11:18:24 +08:00 committed by Matan Kushner
parent 90c8f897af
commit a56991cbc4
2 changed files with 3 additions and 12 deletions

View File

@ -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);

View File

@ -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(())
}