Skip to content

Commit

Permalink
::new, not ::from
Browse files Browse the repository at this point in the history
  • Loading branch information
gefjon committed Nov 12, 2024
1 parent 55555fd commit 10f0c39
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 @@ -78,7 +78,7 @@ impl TxId {
self.committed_state_shared_lock.get_table(table_id).and_then(|t| {
t.indexes
.get(cols)
.and_then(|index| NonZeroU64::from(index.num_keys() as u64))
.and_then(|index| NonZeroU64::new(index.num_keys() as u64))
})
}
}

0 comments on commit 10f0c39

Please sign in to comment.