Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed May 2, 2024
1 parent dd9b63b commit 85b97fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/data_loader/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions src/data_loader/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 85b97fc

Please sign in to comment.