Skip to content

Commit 5faa2e2

Browse files
committed
fix(cardano-blockchain-types): expose from_saturating
Signed-off-by: bkioshn <[email protected]>
1 parent 3c9befe commit 5faa2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/cardano-blockchain-types/src/txn_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct TxnIndex(u16);
88

99
impl TxnIndex {
1010
/// Convert an `<T>` to transaction index (saturate if out of range).
11-
pub(crate) fn from_saturating<
11+
pub fn from_saturating<
1212
T: Copy
1313
+ TryInto<u16>
1414
+ std::ops::Sub<Output = T>

0 commit comments

Comments
 (0)