Skip to content

Commit 2e3aff9

Browse files
committed
Fix clippy
1 parent 916e43f commit 2e3aff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datafusion/execution/src/cache/cache_unit.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
use crate::cache::CacheAccessor;
1919
use crate::cache::cache_manager::{
20-
CachedFileMetadata, FileMetadataCache, FileStatisticsCache, FileStatisticsCacheEntry,
20+
CachedFileMetadata, FileStatisticsCache, FileStatisticsCacheEntry,
2121
};
2222
use object_store::path::Path;
2323
use std::collections::HashMap;
@@ -552,9 +552,9 @@ mod tests {
552552
let (meta_2, value_2) = create_cached_file_metadata_with_stats("test2.parquet");
553553
let (meta_3, value_3) = create_cached_file_metadata_with_stats("test3.parquet");
554554

555-
let limit_for_2_entries = &meta_1.location.heap_size()
555+
let limit_for_2_entries = meta_1.location.heap_size()
556556
+ value_1.heap_size()
557-
+ &meta_2.location.heap_size()
557+
+ meta_2.location.heap_size()
558558
+ value_2.heap_size();
559559

560560
// create a cache with a limit which fits exactly 2 entries
@@ -589,7 +589,7 @@ mod tests {
589589
assert_eq!(cache.len(), 1);
590590
assert_eq!(
591591
cache.memory_used(),
592-
&meta_3.location.heap_size() + value_3.heap_size()
592+
meta_3.location.heap_size() + value_3.heap_size()
593593
);
594594

595595
cache.clear();

0 commit comments

Comments
 (0)