chore: fix clippy lints 2024-12-06 (#10138)

This commit is contained in:
Conrad Ludgate
2024-12-16 15:33:21 +00:00
committed by GitHub
parent c5e3314c6e
commit 6565fd4056
30 changed files with 58 additions and 68 deletions

View File

@@ -81,7 +81,7 @@ fn test_end_of_wal<C: crate::Crafter>(test_name: &str) {
continue;
}
let mut f = File::options().write(true).open(file.path()).unwrap();
const ZEROS: [u8; WAL_SEGMENT_SIZE] = [0u8; WAL_SEGMENT_SIZE];
static ZEROS: [u8; WAL_SEGMENT_SIZE] = [0u8; WAL_SEGMENT_SIZE];
f.write_all(
&ZEROS[0..min(
WAL_SEGMENT_SIZE,