diff --git a/lintcheck/Cargo.toml b/lintcheck/Cargo.toml index e0e94d7fe..ae9e77b8e 100644 --- a/lintcheck/Cargo.toml +++ b/lintcheck/Cargo.toml @@ -19,7 +19,7 @@ flate2 = "1.0" rayon = "1.5.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.85" -strip-ansi-escapes = "0.1.1" +strip-ansi-escapes = "0.2.0" tar = "0.4" toml = "0.7.3" ureq = { version = "2.2", features = ["json"] } diff --git a/lintcheck/src/main.rs b/lintcheck/src/main.rs index 8dd6e95bb..ec72e0eb5 100644 --- a/lintcheck/src/main.rs +++ b/lintcheck/src/main.rs @@ -161,7 +161,7 @@ impl ClippyWarning { // --recursive bypasses cargo so we have to strip the rendered output ourselves let rendered = diag.rendered.as_mut().unwrap(); - *rendered = String::from_utf8(strip_ansi_escapes::strip(&rendered).unwrap()).unwrap(); + *rendered = strip_ansi_escapes::strip_str(&rendered); Some(Self { crate_name: crate_name.to_owned(),