Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Dec 15, 2024
1 parent 9224b9b commit 43a16f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frida/src/device_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<'a> DeviceManager<'a> {
return Err(Error::DeviceLookupFailed);
}

return Ok(Device::from_raw(device_ptr));
return Ok(Device::from_raw(device_ptr))
}

/// Returns the local device.
Expand Down Expand Up @@ -145,7 +145,7 @@ impl<'a> DeviceManager<'a> {
}
}

impl<'a> Drop for DeviceManager<'a> {
impl Drop for DeviceManager<'_> {
fn drop(&mut self) {
unsafe {
frida_sys::frida_device_manager_close_sync(
Expand Down
2 changes: 1 addition & 1 deletion frida/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl Exports<'_> {
}
}

impl<'a> Drop for Script<'a> {
impl Drop for Script<'_> {
fn drop(&mut self) {
unsafe { frida_sys::frida_unref(self.script_ptr as _) }
}
Expand Down

0 comments on commit 43a16f7

Please sign in to comment.