From 73c136c645460d4f2ea9300864bddc9ad01a6bae Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Fri, 1 Aug 2025 16:19:15 +0200 Subject: chore: clippy, update msrv Signed-off-by: Henry Gressmann --- crates/tinywasm/tests/testsuite/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/tinywasm/tests/testsuite/mod.rs b/crates/tinywasm/tests/testsuite/mod.rs index 140b063..229bea6 100644 --- a/crates/tinywasm/tests/testsuite/mod.rs +++ b/crates/tinywasm/tests/testsuite/mod.rs @@ -79,13 +79,12 @@ impl TestSuite { let last_line = BufReader::new(&file).lines().last().transpose()?; // Check if the last line starts with the current commit - if let Some(last) = last_line { - if last.starts_with(version) { + if let Some(last) = last_line + && last.starts_with(version) { // Truncate the file size to remove the last line let len_to_truncate = last.len() as i64; file.set_len(file.metadata()?.len() - len_to_truncate as u64 - 1)?; } - } // Seek to the end of the file for appending file.seek(SeekFrom::End(0))?; -- cgit v1.3.1