fix: clippy::ref_as_ptr

https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr

Part of #12136
This commit is contained in:
xtqqczze
2025-12-10 20:58:00 +00:00
committed by Johannes Altmanninger
parent ec77c34ebe
commit 831411ddd5
7 changed files with 12 additions and 14 deletions

View File

@@ -1525,7 +1525,7 @@ fn run_1_job(
// Save the executing node.
let _saved_node = self
.line_counter
.scoped_set(job_node as *const _, |s| &mut s.node);
.scoped_set(std::ptr::from_ref(job_node), |s| &mut s.node);
// Profiling support.
let profile_item_id = ctx.parser().create_profile_item();