Skip to content

Commit a731668

Browse files
committed
In edition 2024, std::env::set_var is unsafe
1 parent 2d8a3e8 commit a731668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/compile-test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ fn run_ui_cargo(cx: &TestContext) {
300300
}
301301

302302
fn main() {
303-
set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
303+
unsafe {
304+
set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
305+
}
304306

305307
let cx = TestContext::new();
306308

0 commit comments

Comments
 (0)