From c0943f84fdb67025662dbcfc011e415870ee80a6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 8 Mar 2021 21:41:45 +0300 Subject: Cleanup the error message --- crates/test_utils/src/lib.rs | 2 +- xtask/src/codegen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index dd582c77c..6041ab5e4 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs @@ -377,7 +377,7 @@ pub fn try_ensure_file_contents(file: &Path, contents: &str) -> Result<(), ()> { display_path.display() ); if is_ci() { - eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n"); + eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n"); } if let Some(parent) = file.parent() { let _ = std::fs::create_dir_all(parent); diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index e43d4fa73..2cf3c6fdc 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs @@ -56,7 +56,7 @@ pub(crate) fn ensure_file_contents(file: &Path, contents: &str) -> Result<()> { display_path.display() ); if std::env::var("CI").is_ok() { - eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n"); + eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n"); } if let Some(parent) = file.parent() { let _ = std::fs::create_dir_all(parent); -- cgit v1.2.3