Commit f5fa9f1
Wrap env::remove_var calls in unsafe blocks
env::remove_var is newly marked unsafe in the 2024 edition due to its
inherent unreliability in multithreaded contexts.
This code is single-threaded so there should be no problem.
See https://doc.rust-lang.org/edition-guide/rust-2024/newly-unsafe-functions.html#stdenvset_var-remove_var1 parent 1f72b1a commit f5fa9f1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments