Bladeren bron

Fix clippy error

`'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 <[email protected]>
Michal Rostecki 2 jaren geleden
bovenliggende
commit
176d61ae23
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      aya/src/obj/btf/relocation.rs

+ 2 - 2
aya/src/obj/btf/relocation.rs

@@ -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,