Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 223ad50

Browse files
chore: cleanup clippy errors
Signed-off-by: Henry Gressmann <[email protected]>
1 parent a8269d7 commit 223ad50

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

crates/parser/src/conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub(crate) fn convert_module_imports<'a, T: IntoIterator<Item = wasmparser::Resu
1818
Ok(imports)
1919
}
2020

21-
pub(crate) fn convert_module_import<'a>(import: wasmparser::Import<'a>) -> Result<Import> {
21+
pub(crate) fn convert_module_import(import: wasmparser::Import<'_>) -> Result<Import> {
2222
Ok(Import {
2323
module: import.module.to_string(),
2424
name: import.name.to_string(),

crates/parser/src/module.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ impl ModuleReader {
129129
ImportSection(reader) => {
130130
debug!("Found import section");
131131
validator.import_section(&reader)?;
132-
self.imports = reader
133-
.into_iter()
134-
.map(|i| conversion::convert_module_import(i?))
135-
.collect::<Result<Vec<_>>>()?;
132+
self.imports = conversion::convert_module_imports(reader)?;
136133
}
137134
ExportSection(reader) => {
138135
debug!("Found export section");

crates/tinywasm/tests/progress-mvp.svg

Lines changed: 3 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)