Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wasm-forge committed Sep 17, 2024
1 parent f676047 commit 2cfc11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1604,14 +1604,14 @@ mod tests {

assert_eq!(content, expected);

write_text_at_offset(&mut fs, fd, "abc", 33, chunk_size as FileSize * 1 + 100).unwrap();
write_text_at_offset(&mut fs, fd, "abc", 33, chunk_size as FileSize + 100).unwrap();

let content = read_text_file(&mut fs, root_fd, filename, 0, chunk_size * 10);

let mut expected = vec![0u8; chunk_size * 2 + 500];

let pattern = b"abc".repeat(33);
expected[chunk_size * 1 + 100..chunk_size * 1 + 100 + 99].copy_from_slice(&pattern[..]);
expected[chunk_size + 100..chunk_size + 100 + 99].copy_from_slice(&pattern[..]);

let expected = String::from_utf8(expected).unwrap();

Expand Down

0 comments on commit 2cfc11a

Please sign in to comment.