Skip to content

Commit 73c136c

Browse files
chore: clippy, update msrv
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 7e98cdd commit 73c136c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ serde={version="1.0", features=["derive"]}
1919

2020
[workspace.package]
2121
version="0.9.0-alpha.0"
22-
rust-version="1.87"
22+
rust-version="1.88"
2323
edition="2024"
2424
license="MIT OR Apache-2.0"
2525
authors=["Henry Gressmann <[email protected]>"]

crates/tinywasm/tests/testsuite/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,12 @@ impl TestSuite {
7979
let last_line = BufReader::new(&file).lines().last().transpose()?;
8080

8181
// Check if the last line starts with the current commit
82-
if let Some(last) = last_line {
83-
if last.starts_with(version) {
82+
if let Some(last) = last_line
83+
&& last.starts_with(version) {
8484
// Truncate the file size to remove the last line
8585
let len_to_truncate = last.len() as i64;
8686
file.set_len(file.metadata()?.len() - len_to_truncate as u64 - 1)?;
8787
}
88-
}
8988

9089
// Seek to the end of the file for appending
9190
file.seek(SeekFrom::End(0))?;

examples/wasm-rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn hello() -> Result<()> {
109109
imports.define(
110110
"env",
111111
"print_utf8",
112-
Extern::typed_func(|mut ctx: FuncContext<'_>, args: (i64, i32)| {
112+
Extern::typed_func(|ctx: FuncContext<'_>, args: (i64, i32)| {
113113
let mem = ctx.exported_memory("memory")?;
114114
let ptr = args.0 as usize;
115115
let len = args.1 as usize;

0 commit comments

Comments
 (0)