summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2025-08-01 16:19:15 +0200
committerHenry Gressmann <mail@henrygressmann.de>2025-08-01 16:19:15 +0200
commit73c136c645460d4f2ea9300864bddc9ad01a6bae (patch)
treee0ad9f113f9c191fcda767cdf92094365e1c3227 /crates
parent7e98cddcfc1ec31adc668b3044096dc76cc5b358 (diff)
chore: clippy, update msrv
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates')
-rw-r--r--crates/tinywasm/tests/testsuite/mod.rs5
1 files changed, 2 insertions, 3 deletions
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))?;