Make clippy happy

This commit is contained in:
Clément Renault
2023-11-23 12:20:44 +01:00
parent 462b4c0080
commit 0dbf1a16ff
24 changed files with 68 additions and 89 deletions

View File

@ -29,7 +29,7 @@ impl ExternalDocumentsIds {
}
pub fn get<A: AsRef<str>>(&self, rtxn: &RoTxn, external_id: A) -> heed::Result<Option<u32>> {
Ok(self.0.get(rtxn, external_id.as_ref())?)
self.0.get(rtxn, external_id.as_ref())
}
/// An helper function to debug this type, returns an `HashMap` of both,