Skip to content

Commit 0b1102a

Browse files
committed
Remove CARGO_TERM_COLOR in ci.rs
1 parent fe22a69 commit 0b1102a

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ sha2 = "0.10"
1919
tempfile = "3.13"
2020

2121
[dev-dependencies]
22+
ctor = "0.2"
2223
regex = "1.11"
2324

2425
[lints.rust.unexpected_cfgs]

tests/ci.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
use assert_cmd::assert::OutputAssertExt;
22
use regex::Regex;
3-
use std::{fs::read_to_string, path::Path, process::Command};
3+
use std::{env::remove_var, fs::read_to_string, path::Path, process::Command};
44
use tempfile::tempdir;
55

6+
#[ctor::ctor]
7+
fn initialize() {
8+
remove_var("CARGO_TERM_COLOR");
9+
}
10+
611
#[test]
712
fn clippy() {
813
Command::new("cargo")

0 commit comments

Comments
 (0)