bump milli to 0.4.0

This commit is contained in:
marin postma
2021-06-16 17:15:56 +02:00
parent 5795254b2a
commit 5a47cef9a8
7 changed files with 32 additions and 15 deletions

View File

@ -41,8 +41,12 @@ impl IndexMeta {
}
fn new_txn(index: &Index, txn: &heed::RoTxn) -> IndexResult<Self> {
let created_at = index.created_at(&txn)?;
let updated_at = index.updated_at(&txn)?;
let created_at = index
.created_at(&txn)
.map_err(|e| IndexError::Internal(e.to_string()))?;
let updated_at = index
.updated_at(&txn)
.map_err(|e| IndexError::Internal(e.to_string()))?;
let primary_key = index.primary_key(&txn)?.map(String::from);
Ok(Self {
created_at,