Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
wasm-forge committed Aug 29, 2024
1 parent 677aa32 commit 176107f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
pub use crate::runtime::fd::Fd;

pub use crate::runtime::types::{
DstBuf, DstIoVec, FdFlags, FdStat, OpenFlags, SrcBuf, SrcIoVec, Whence,
DstBuf, DstIoVec, FdFlags, FdStat, OpenFlags, SrcBuf, SrcIoVec, Whence, ChunkSize
};

// The main class implementing the API to work with the file system.
Expand Down
4 changes: 1 addition & 3 deletions src/storage/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl<M: Memory> ChunkPtrAllocator<M> {

// init chunk size
let mut chunk_size = allocator.read_u64(CHUNK_SIZE_IDX) as usize;
println!("chunk_size stored: {chunk_size}");

if chunk_size == 0 {
chunk_size = DEFAULT_FILE_CHUNK_SIZE_V2;
Expand Down Expand Up @@ -138,8 +137,7 @@ impl<M: Memory> ChunkPtrAllocator<M> {
// new size must be one of the available values

if !ChunkSize::VALUES
.iter()
.any(|size| *size as usize == new_size)
.iter().any(|size| *size as usize == new_size)
{
return Err(Error::IncompatibleChunkSize);
}
Expand Down

0 comments on commit 176107f

Please sign in to comment.