Remove unneccessary clone

This commit is contained in:
Cyryl Płotnicki 2020-11-07 10:21:07 +00:00
parent 11f3981a2d
commit dd675bcbd5

View file

@ -101,7 +101,7 @@ impl Index {
self.items_by_file_id.insert(item.id.clone(), item.clone()); self.items_by_file_id.insert(item.id.clone(), item.clone());
self.newest_items_by_source_path self.newest_items_by_source_path
.insert(original_source_path.to_string_lossy().to_string(), item.clone()); .insert(original_source_path.to_string_lossy().to_string(), item);
} }
pub fn repository_item(&self, i: &IndexItem) -> RepositoryItem { pub fn repository_item(&self, i: &IndexItem) -> RepositoryItem {