mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Fix clippy warnings
This commit is contained in:
parent
8392431bd8
commit
4948cee360
2 changed files with 3 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue