From 10f0c39d83d604b70a4465852141cdb7e994e478 Mon Sep 17 00:00:00 2001 From: Phoebe Goldman Date: Tue, 12 Nov 2024 14:55:45 -0500 Subject: [PATCH] `::new`, not `::from` --- crates/core/src/db/datastore/locking_tx_datastore/tx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/db/datastore/locking_tx_datastore/tx.rs b/crates/core/src/db/datastore/locking_tx_datastore/tx.rs index 823219d45a..d7952abfd5 100644 --- a/crates/core/src/db/datastore/locking_tx_datastore/tx.rs +++ b/crates/core/src/db/datastore/locking_tx_datastore/tx.rs @@ -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)) }) } }