summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:48:12 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:48:12 +0200
commitc5f45ff56f7538944d92d5d318a01d10da04535c (patch)
tree589c7c3af38c46441c798ce307c96acca637c314 /crates
parent0ed6acf459ff941f3b20b3e7462e4ba1cf7fdbe5 (diff)
ci: improve no_std testing, add linux arm64
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates')
-rw-r--r--crates/parser/src/module.rs4
-rw-r--r--crates/tinywasm/src/func.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/parser/src/module.rs b/crates/parser/src/module.rs
index 20ed00d..ff7d109 100644
--- a/crates/parser/src/module.rs
+++ b/crates/parser/src/module.rs
@@ -168,9 +168,9 @@ impl ModuleReader {
validator.end(offset)?;
self.end_reached = true;
}
- CustomSection(reader) => {
+ CustomSection(_reader) => {
debug!("Found custom section");
- debug!("Skipping custom section: {:?}", reader.name());
+ debug!("Skipping custom section: {:?}", _reader.name());
}
UnknownSection { .. } => return Err(ParseError::UnsupportedSection("Unknown section".into())),
section => return Err(ParseError::UnsupportedSection(format!("Unsupported section: {section:?}"))),
diff --git a/crates/tinywasm/src/func.rs b/crates/tinywasm/src/func.rs
index 466dd86..7035109 100644
--- a/crates/tinywasm/src/func.rs
+++ b/crates/tinywasm/src/func.rs
@@ -37,9 +37,9 @@ impl FuncHandle {
}
// 5. For each value type and the corresponding value, check if types match
- if !(func_ty.params.iter().zip(params).enumerate().all(|(i, (ty, param))| {
+ if !(func_ty.params.iter().zip(params).enumerate().all(|(_i, (ty, param))| {
if ty != &param.val_type() {
- log::error!("param type mismatch at index {}: expected {:?}, got {:?}", i, ty, param);
+ log::error!("param type mismatch at index {}: expected {:?}, got {:?}", _i, ty, param);
false
} else {
true