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 90bb0ae commit 9224b9b
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 @@ -82,7 +82,7 @@ impl<'a> DeviceManager<'a> {
return Err(Error::DeviceLookupFailed);
}

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

/// Returns the remote device with the specified host.
Expand Down Expand Up @@ -141,7 +141,7 @@ impl<'a> DeviceManager<'a> {
return Err(Error::DeviceLookupFailed);
}

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

Expand Down
2 changes: 1 addition & 1 deletion frida/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Exports<'_> {
}
}

impl Script<'_> {
impl<'a> Script<'a> {
pub(crate) fn from_raw(script_ptr: *mut _FridaScript) -> Script<'a> {
let rpc_counter = Rc::new(RefCell::new(0));
let handler = Rc::new(RefCell::new(CallbackHandler::new()));
Expand Down

0 comments on commit 9224b9b

Please sign in to comment.