From a56991cbc4b59bd1593bab20cf792ec0b1983156 Mon Sep 17 00:00:00 2001 From: Zhenhui Xie Date: Fri, 27 Sep 2019 11:18:24 +0800 Subject: [PATCH] style: Fix rustfmt formatting warnings in CI (#432) --- tests/testsuite/git_status.rs | 10 ++-------- tests/testsuite/python.rs | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/testsuite/git_status.rs b/tests/testsuite/git_status.rs index 50378580..3fdf8e24 100644 --- a/tests/testsuite/git_status.rs +++ b/tests/testsuite/git_status.rs @@ -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); diff --git a/tests/testsuite/python.rs b/tests/testsuite/python.rs index eba959ce..718259c5 100644 --- a/tests/testsuite/python.rs +++ b/tests/testsuite/python.rs @@ -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(()) }