Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
`'local` lifetime can be elided to `'_` which triggers:

https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
  • Loading branch information
vadorovsky committed Nov 28, 2022
1 parent 5d0527a commit 176d61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aya/src/obj/btf/relocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ fn match_candidate<'target>(
Ok(Some(target_spec))
}

fn match_member<'local, 'target>(
fn match_member<'target>(
local_btf: &Btf,
local_spec: &AccessSpec<'local>,
local_spec: &AccessSpec<'_>,
local_accessor: &Accessor,
target_btf: &'target Btf,
target_id: u32,
Expand Down

0 comments on commit 176d61a

Please sign in to comment.