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"]}
19
19
20
20
[workspace .package ]
21
21
version =" 0.9.0-alpha.0"
22
- rust-version =" 1.87 "
22
+ rust-version =" 1.88 "
23
23
edition =" 2024"
24
24
license =" MIT OR Apache-2.0"
25
25
authors =[" Henry Gressmann <mail@henrygressmann.de>" ]
Original file line number Diff line number Diff line change @@ -79,13 +79,12 @@ impl TestSuite {
79
79
let last_line = BufReader :: new ( & file) . lines ( ) . last ( ) . transpose ( ) ?;
80
80
81
81
// 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) {
84
84
// Truncate the file size to remove the last line
85
85
let len_to_truncate = last. len ( ) as i64 ;
86
86
file. set_len ( file. metadata ( ) ?. len ( ) - len_to_truncate as u64 - 1 ) ?;
87
87
}
88
- }
89
88
90
89
// Seek to the end of the file for appending
91
90
file. seek ( SeekFrom :: End ( 0 ) ) ?;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ fn hello() -> Result<()> {
109
109
imports. define (
110
110
"env" ,
111
111
"print_utf8" ,
112
- Extern :: typed_func ( |mut ctx : FuncContext < ' _ > , args : ( i64 , i32 ) | {
112
+ Extern :: typed_func ( |ctx : FuncContext < ' _ > , args : ( i64 , i32 ) | {
113
113
let mem = ctx. exported_memory ( "memory" ) ?;
114
114
let ptr = args. 0 as usize ;
115
115
let len = args. 1 as usize ;
You can’t perform that action at this time.
0 commit comments