From c7e840a1adf09721c6bd9180b3a3989c951f0f77 Mon Sep 17 00:00:00 2001 From: discord9 Date: Tue, 9 Dec 2025 13:24:56 +0800 Subject: [PATCH] per review Signed-off-by: discord9 --- src/mito2/src/access_layer.rs | 2 +- src/mito2/src/cache/file_cache.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mito2/src/access_layer.rs b/src/mito2/src/access_layer.rs index f5c7ba79f9..ea7cbaca97 100644 --- a/src/mito2/src/access_layer.rs +++ b/src/mito2/src/access_layer.rs @@ -476,7 +476,7 @@ impl TempFileCleaner { } /// Removes the SST and index file from the local atomic dir by the file id. - /// This only remove the initial index, Since the index version is always 0 for a new SST, this method should be safe to pass 0. + /// This only removes the initial index, since the index version is always 0 for a new SST, this method should be safe to pass 0. pub(crate) async fn clean_by_file_id(&self, file_id: FileId) { let sst_key = IndexKey::new(self.region_id, file_id, FileType::Parquet).to_string(); let index_key = IndexKey::new(self.region_id, file_id, FileType::Puffin(0)).to_string(); diff --git a/src/mito2/src/cache/file_cache.rs b/src/mito2/src/cache/file_cache.rs index 7f0dd187e4..a7fe1dfb35 100644 --- a/src/mito2/src/cache/file_cache.rs +++ b/src/mito2/src/cache/file_cache.rs @@ -621,7 +621,7 @@ pub enum FileType { Puffin(u64), } -impl std::fmt::Display for FileType { +impl fmt::Display for FileType { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { FileType::Parquet => write!(f, "parquet"),