Fix some warnings

pull/1/head
Alessandro Decina 4 years ago
parent 65d520bbd7
commit 3b668d9274

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

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

Loading…
Cancel
Save