aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-03-08 18:41:45 +0000
committerAleksey Kladov <[email protected]>2021-03-08 18:45:43 +0000
commitc0943f84fdb67025662dbcfc011e415870ee80a6 (patch)
tree1222248992d94c882a34fe3a40096d308d127c4a
parente89c0e39613e381da45b6a774c6666dcc3e632a2 (diff)
Cleanup the error message
-rw-r--r--crates/test_utils/src/lib.rs2
-rw-r--r--xtask/src/codegen.rs2
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<(), ()> {
377 display_path.display() 377 display_path.display()
378 ); 378 );
379 if is_ci() { 379 if is_ci() {
380 eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n"); 380 eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n");
381 } 381 }
382 if let Some(parent) = file.parent() { 382 if let Some(parent) = file.parent() {
383 let _ = std::fs::create_dir_all(parent); 383 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<()> {
56 display_path.display() 56 display_path.display()
57 ); 57 );
58 if std::env::var("CI").is_ok() { 58 if std::env::var("CI").is_ok() {
59 eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n"); 59 eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n");
60 } 60 }
61 if let Some(parent) = file.parent() { 61 if let Some(parent) = file.parent() {
62 let _ = std::fs::create_dir_all(parent); 62 let _ = std::fs::create_dir_all(parent);