Skip to content

Commit

Permalink
Allow unused unsafe (#371)
Browse files Browse the repository at this point in the history
* Remove no longer needed unsafe

* But still needed on MSRV
  • Loading branch information
Wojtek242 authored Oct 27, 2024
1 parent d8bd39e commit 66730d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/capture/activated/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ mod testmod {
pub struct NextExContext(raw::__pcap_next_ex::Context);
pub fn next_ex_expect(pcap: *mut raw::pcap_t) -> NextExContext {
let data_ptr: *const libc::c_uchar = DATA.as_ptr();
#[allow(unused_unsafe)] // unsafe still needed to compile on MSRV
let pkthdr_ptr: *mut raw::pcap_pkthdr = unsafe { std::ptr::addr_of_mut!(PKTHDR) };

let ctx = raw::pcap_next_ex_context();
Expand Down

0 comments on commit 66730d8

Please sign in to comment.