make clippy happy

This commit is contained in:
Tamo 2024-01-17 16:07:10 +01:00 committed by Louis Dureuil
parent 318843aacd
commit 9f8f3105d5
No known key found for this signature in database

View File

@ -37,7 +37,7 @@ pub fn extract_geo_points<R: io::Read + io::Seek>(
let reader = KvReaderDelAdd::new(obkv.get(primary_key_id).unwrap()); let reader = KvReaderDelAdd::new(obkv.get(primary_key_id).unwrap());
let document_id = let document_id =
reader.get(DelAdd::Deletion).or(reader.get(DelAdd::Addition)).unwrap(); reader.get(DelAdd::Deletion).or(reader.get(DelAdd::Addition)).unwrap();
serde_json::from_slice(&document_id).unwrap() serde_json::from_slice(document_id).unwrap()
}; };
// first we get the two fields // first we get the two fields