Skip to content

Commit 0cfd142

Browse files
committed
fix: clippy
1 parent 47b99eb commit 0cfd142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/libs/kill_tree/src/macos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) async fn get_process_info(process_id: ProcessId) -> Option<ProcessInf
3535
debug!(error = ?error, process_id, "failed to get process info");
3636
return None;
3737
}
38-
let name = unsafe { CStr::from_ptr(&proc_bsdinfo.pbi_name[0] as *const i8) }
38+
let name = unsafe { CStr::from_ptr(std::ptr::addr_of!(proc_bsdinfo.pbi_name[0])) }
3939
.to_string_lossy()
4040
.to_string();
4141
Some(ProcessInfo {

0 commit comments

Comments
 (0)