From 52a7a0871b0044942f01cdc1f89d1394398e23d6 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Thu, 1 Feb 2024 20:07:55 +0000 Subject: [PATCH] Update `inner_attributes_example` test --- cast_checks/tests/inner_attribute_example.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cast_checks/tests/inner_attribute_example.rs b/cast_checks/tests/inner_attribute_example.rs index 7da90ab..ef143e4 100644 --- a/cast_checks/tests/inner_attribute_example.rs +++ b/cast_checks/tests/inner_attribute_example.rs @@ -1,6 +1,12 @@ use assert_cmd::Command; +use std::env::remove_var; use tempfile::tempdir; +#[ctor::ctor] +fn initialize() { + remove_var("CARGO_TERM_COLOR"); +} + #[test] fn build() { run_command("build", |mut command| { @@ -8,7 +14,7 @@ fn build() { command.assert().success().stdout( "\ cast_checks rewriting `x as u16` at src/lib.rs:0:0 -cast_checks not descending into `mod c ;` at src/lib.rs:0:0 +cast_checks not descending into `mod c;` at src/lib.rs:0:0 ", ); });