Skip to content

Commit 34495f5

Browse files
committed
Migrate opt-dist to edition 2024
1 parent 52fcf33 commit 34495f5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,6 @@ dependencies = [
25672567
"humansize",
25682568
"humantime",
25692569
"log",
2570-
"serde",
25712570
"serde_json",
25722571
"sysinfo",
25732572
"tabled",

src/tools/opt-dist/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "opt-dist"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
build_helper = { path = "../../build_helper" }

src/tools/opt-dist/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@ fn execute_pipeline(
361361

362362
fn main() -> anyhow::Result<()> {
363363
// Make sure that we get backtraces for easier debugging in CI
364-
std::env::set_var("RUST_BACKTRACE", "1");
364+
unsafe {
365+
// SAFETY: we are the only thread running at this point
366+
std::env::set_var("RUST_BACKTRACE", "1");
367+
}
365368

366369
env_logger::builder()
367370
.filter_level(LevelFilter::Info)

0 commit comments

Comments
 (0)