Skip to content

Commit 7f987ae

Browse files
refactor: tighten visibility where possible
1 parent cc7e216 commit 7f987ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bdk-ffi/src/bitcoin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl HashableOutPoint {
121121
/// This is an integer type representing fee rate in sat/kwu. It provides protection against mixing
122122
/// up the types as well as basic formatting features.
123123
#[derive(Clone, Debug, uniffi::Object)]
124-
pub struct FeeRate(pub BdkFeeRate);
124+
pub struct FeeRate(pub(crate) BdkFeeRate);
125125

126126
#[uniffi::export]
127127
impl FeeRate {
@@ -160,7 +160,7 @@ impl_into_core_type!(FeeRate, BdkFeeRate);
160160
/// underflow occurs. Also note that since the internal representation of amounts is unsigned,
161161
/// subtracting below zero is considered an underflow and will cause a panic.
162162
#[derive(Debug, Clone, PartialEq, Eq, uniffi::Object)]
163-
pub struct Amount(pub BdkAmount);
163+
pub struct Amount(pub(crate) BdkAmount);
164164

165165
#[uniffi::export]
166166
impl Amount {
@@ -195,7 +195,7 @@ impl_into_core_type!(Amount, BdkAmount);
195195
/// A bitcoin script: https://en.bitcoin.it/wiki/Script
196196
#[derive(Clone, Debug, uniffi::Object)]
197197
#[uniffi::export(Display)]
198-
pub struct Script(pub BdkScriptBuf);
198+
pub struct Script(pub(crate) BdkScriptBuf);
199199

200200
#[uniffi::export]
201201
impl Script {

0 commit comments

Comments
 (0)