Skip to content

Commit

Permalink
Fix new clippy lints (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek242 authored Jun 15, 2024
1 parent 7d7b30a commit b26cb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capture/inactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Capture<Inactive> {
pub fn open(self) -> Result<Capture<Active>, Error> {
unsafe {
self.check_err(raw::pcap_activate(self.handle.as_ptr()) == 0)?;
Ok(mem::transmute(self))
Ok(mem::transmute::<Capture<Inactive>, Capture<Active>>(self))
}
}

Expand Down

0 comments on commit b26cb03

Please sign in to comment.