Procházet zdrojové kódy

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 před 2 roky
rodič
revize
176d61ae23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,