This repository was archived by the owner on Oct 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
crates/tinywasm/tests/testsuite Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ serde={version="1.0", features=["derive"]}
1919
2020[workspace .package ]
2121version =" 0.9.0-alpha.0"
22- rust-version =" 1.87 "
22+ rust-version =" 1.88 "
2323edition =" 2024"
2424license =" MIT OR Apache-2.0"
2525authors =[" Henry Gressmann <mail@henrygressmann.de>" ]
Original file line number Diff line number Diff 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 ) ) ?;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments