From 85b97fc6e4afaaaea4b1a75f5858b8ebc871c390 Mon Sep 17 00:00:00 2001 From: amit Date: Thu, 2 May 2024 21:55:10 +0530 Subject: [PATCH] style: lint --- src/data_loader/cache.rs | 1 + src/data_loader/storage.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/data_loader/cache.rs b/src/data_loader/cache.rs index 085818d8c75..3c4ed82d60c 100644 --- a/src/data_loader/cache.rs +++ b/src/data_loader/cache.rs @@ -45,6 +45,7 @@ where fn insert(&mut self, _key: Cow<'_, Self::Key>, _val: Cow<'_, Self::Value>) {} #[inline] + #[allow(dead_code)] fn remove(&mut self, _key: &K) {} #[inline] diff --git a/src/data_loader/storage.rs b/src/data_loader/storage.rs index ea36c74f835..1d358372249 100644 --- a/src/data_loader/storage.rs +++ b/src/data_loader/storage.rs @@ -17,6 +17,7 @@ pub trait CacheStorage: Send + Sync + 'static { /// cache, then it updates the key's value. fn insert(&mut self, key: Cow<'_, Self::Key>, val: Cow<'_, Self::Value>); + #[allow(dead_code)] /// Removes the value corresponding to the key from the cache. fn remove(&mut self, key: &Self::Key);