Skip to content

Commit

Permalink
fix no_std ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoffio committed Sep 5, 2024
1 parent 80ae226 commit ee52266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions frida-gum/src/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ impl<'a> Interceptor<'a> {
/// Obtain an Interceptor handle, ensuring that the runtime is properly initialized. This may
/// be called as many times as needed, and results in a no-op if the Interceptor is
/// already initialized.
pub fn obtain<'b>(_gum: &'b Gum) -> Interceptor
where
'b: 'a,
{
pub fn obtain<'b: 'a>(_gum: &'b Gum) -> Interceptor<'b> {
Interceptor {
interceptor: unsafe { gum_sys::gum_interceptor_obtain() },
phantom: PhantomData,
Expand Down
5 changes: 1 addition & 4 deletions frida-gum/src/stalker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ impl<'a> Stalker<'a> {
/// This call has the overhead of checking if the Stalker is
/// available on the current platform, as creating a Stalker on an
/// unsupported platform results in unwanted behaviour.
pub fn new<'b>(gum: &'b Gum) -> Stalker
where
'b: 'a,
{
pub fn new<'b: 'a>(gum: &'b Gum) -> Stalker<'b> {
assert!(Self::is_supported(gum));

Stalker {
Expand Down

0 comments on commit ee52266

Please sign in to comment.