mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-08 01:52:54 +00:00
clippy: fix map_clone warnings
This commit is contained in:
committed by
Paul Masurel
parent
92f383fa51
commit
1cd0b378fb
@@ -70,9 +70,7 @@ impl SegmentRegister {
|
||||
}
|
||||
|
||||
pub fn segment_entry(&self, segment_id: &SegmentId) -> Option<SegmentEntry> {
|
||||
self.segment_states
|
||||
.get(&segment_id)
|
||||
.map(|segment_entry| segment_entry.clone())
|
||||
self.segment_states.get(&segment_id).cloned()
|
||||
}
|
||||
|
||||
pub fn contains_all(&mut self, segment_ids: &[SegmentId]) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user