Browse Source

Merge pull request #452 from vadorovsky/fix-lint

Fix clippy error
Michal Rostecki 2 years ago
parent
commit
9382de75cc
2 changed files with 3 additions and 2 deletions
  1. 1 0
      .github/workflows/build-aya.yml
  2. 2 2
      aya/src/obj/btf/relocation.rs

+ 1 - 0
.github/workflows/build-aya.yml

@@ -66,6 +66,7 @@ jobs:
 
       - name: Install Pre-requisites
         run: |
+          sudo apt-get update
           sudo apt-get -qy install linux-tools-common qemu-system-x86 cloud-image-utils openssh-client libelf-dev gcc-multilib
           cargo install bpf-linker
 

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