Fix clippy warnings

This commit is contained in:
Brian Carroll 2021-11-09 15:49:08 +00:00
parent 8392431bd8
commit 4948cee360
2 changed files with 3 additions and 6 deletions

View file

@ -473,11 +473,8 @@ impl<'a> LinkingSection<'a> {
pub fn symbol_table_mut(&mut self) -> &mut Vec<'a, SymInfo> {
for sub in self.subsections.iter_mut() {
match sub {
LinkingSubSection::SymbolTable(syminfos) => {
return syminfos;
}
_ => {}
if let LinkingSubSection::SymbolTable(syminfos) = sub {
return syminfos;
}
}
panic!("Symbol table not found");