mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Fix clippy warnings
This commit is contained in:
parent
8392431bd8
commit
4948cee360
2 changed files with 3 additions and 6 deletions
|
@ -31,7 +31,7 @@ const CONST_SEGMENT_BASE_ADDR: u32 = 1024;
|
||||||
/// Index of the data segment where we store constants
|
/// Index of the data segment where we store constants
|
||||||
const CONST_SEGMENT_INDEX: usize = 0;
|
const CONST_SEGMENT_INDEX: usize = 0;
|
||||||
|
|
||||||
const IMPORT_MODULE_BUILTINS: &'static str = "builtins";
|
const IMPORT_MODULE_BUILTINS: &str = "builtins";
|
||||||
|
|
||||||
pub struct WasmBackend<'a> {
|
pub struct WasmBackend<'a> {
|
||||||
env: &'a Env<'a>,
|
env: &'a Env<'a>,
|
||||||
|
|
|
@ -473,11 +473,8 @@ impl<'a> LinkingSection<'a> {
|
||||||
|
|
||||||
pub fn symbol_table_mut(&mut self) -> &mut Vec<'a, SymInfo> {
|
pub fn symbol_table_mut(&mut self) -> &mut Vec<'a, SymInfo> {
|
||||||
for sub in self.subsections.iter_mut() {
|
for sub in self.subsections.iter_mut() {
|
||||||
match sub {
|
if let LinkingSubSection::SymbolTable(syminfos) = sub {
|
||||||
LinkingSubSection::SymbolTable(syminfos) => {
|
return syminfos;
|
||||||
return syminfos;
|
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panic!("Symbol table not found");
|
panic!("Symbol table not found");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue