Browse Source

Fix some warnings

Alessandro Decina 4 years ago
parent
commit
3b668d9274
2 changed files with 1 additions and 2 deletions
  1. 1 1
      src/obj/btf/relocation.rs
  2. 0 1
      src/obj/mod.rs

+ 1 - 1
src/obj/btf/relocation.rs

@@ -457,7 +457,7 @@ fn match_member<'local, 'target>(
     let target_ty = target_btf.type_by_id(target_id)?;
 
     let target_members = match target_ty {
-        BtfType::Struct(ty, members) | BtfType::Union(ty, members) => members,
+        BtfType::Struct(_, members) | BtfType::Union(_, members) => members,
         // not a fields type, no match
         _ => return Ok(None),
     };

+ 0 - 1
src/obj/mod.rs

@@ -2,7 +2,6 @@ mod btf;
 mod relocation;
 
 use object::{
-    pod,
     read::{Object as ElfObject, ObjectSection, Section as ObjSection},
     Endianness, ObjectSymbol, ObjectSymbolTable, SectionIndex, SymbolIndex,
 };