From 176107ff4b24b74fa31b0c8b5437982401665aa9 Mon Sep 17 00:00:00 2001 From: wasm-forge <122647775+wasm-forge@users.noreply.github.com> Date: Fri, 30 Aug 2024 01:29:54 +0200 Subject: [PATCH] clean-up --- src/fs.rs | 2 +- src/storage/allocator.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fs.rs b/src/fs.rs index a859f90..48fb057 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -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. diff --git a/src/storage/allocator.rs b/src/storage/allocator.rs index 61406e4..bea8532 100644 --- a/src/storage/allocator.rs +++ b/src/storage/allocator.rs @@ -45,7 +45,6 @@ impl ChunkPtrAllocator { // 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; @@ -138,8 +137,7 @@ impl ChunkPtrAllocator { // 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); }