mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-01 08:11:14 -03:00
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:
committed by
Johannes Altmanninger
parent
ec77c34ebe
commit
831411ddd5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user