Skip to content

Commit

Permalink
fix: clippy::not_unsafe_ptr_arg_deref
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Dec 8, 2024
1 parent 78c32c5 commit 8f22caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis/runtime/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ pub fn addr_of_local(mir_loc: MirLocId, ptr: usize, local: u32, size: u32) {
});
}

pub fn addr_of_sized<T: ?Sized>(mir_loc: MirLocId, ptr: *const T) {
let size = unsafe { core::mem::size_of_val(&*ptr) };
pub unsafe fn addr_of_sized<T: ?Sized>(mir_loc: MirLocId, ptr: *const T) {
let size = core::mem::size_of_val(&*ptr);
RUNTIME.send_event(Event {
mir_loc,
kind: EventKind::AddrOfSized {
Expand Down

0 comments on commit 8f22caf

Please sign in to comment.