Skip to content

Commit

Permalink
Use the correct Option combinator
Browse files Browse the repository at this point in the history
  • Loading branch information
gefjon committed Nov 12, 2024
1 parent ac69777 commit 9a9b03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/db/datastore/locking_tx_datastore/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl TxId {
self.committed_state_shared_lock.get_table(table_id).and_then(|t| {
t.indexes
.get(cols)
.map(|index| NonZeroU64::new(index.num_keys() as u64))
.and_then(|index| NonZeroU64::new(index.num_keys() as u64))
})
}
}

0 comments on commit 9a9b03d

Please sign in to comment.