瀏覽代碼

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 年之前
父節點
當前提交
176d61ae23
共有 1 個文件被更改,包括 2 次插入2 次删除
  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,