make clippy happy

This commit is contained in:
Tamo 2024-01-17 16:07:10 +01:00
parent 3f21daf2e7
commit b9f365a965
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

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