Skip to content

Commit f57a348

Browse files
authored
Remove the global allow for deprecated_safe_2024, add an exclusion in mesh (#668)
This will prevent any new uses of set/remove_env from coming into the codebase. This one case in mesh requires nontrivial work to remove. Tracked by #288.
1 parent 4320f72 commit f57a348

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ rust_2018_idioms = { level = "deny", priority = -2 }
590590
rust-2024-compatibility = { level = "warn", priority = -1 }
591591
edition_2024_expr_fragment_specifier = "allow"
592592
# TODO: Fix all of the below, https://github.com/microsoft/openvmm/issues/288
593-
deprecated-safe-2024 = "allow"
594593
tail-expr-drop-order = "allow"
595594
if-let-rescope = "allow"
596595

support/mesh/mesh_process/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ async fn node_from_environment() -> anyhow::Result<Option<NodeResult>> {
161161
// current edition), either this function and its callers need to become
162162
// `unsafe`, or we need to avoid using the environment to propagate the
163163
// invitation so that we can avoid this call.
164+
#[expect(deprecated_safe_2024)]
164165
std::env::remove_var(INVITATION_ENV_NAME);
165166

166167
let invitation: Invitation = mesh::payload::decode(

0 commit comments

Comments
 (0)