feat: tighten visibility of inner fields not required by external users

This commit is contained in:
thunderbiscuit 2024-06-27 12:24:49 -04:00
parent cddd5f25d8
commit ffe0c8c1a4
No known key found for this signature in database
GPG Key ID: 88253696EB836462
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ impl From<&BdkTxOut> for TxOut {
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct FeeRate(pub BdkFeeRate); pub struct FeeRate(pub(crate) BdkFeeRate);
impl FeeRate { impl FeeRate {
pub fn from_sat_per_vb(sat_per_vb: u64) -> Result<Self, FeeRateError> { pub fn from_sat_per_vb(sat_per_vb: u64) -> Result<Self, FeeRateError> {

View File

@ -19,7 +19,7 @@ use std::ops::Deref;
use std::str::FromStr; use std::str::FromStr;
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
pub(crate) struct Mnemonic(pub(crate) BdkMnemonic); pub(crate) struct Mnemonic(BdkMnemonic);
impl Mnemonic { impl Mnemonic {
pub(crate) fn new(word_count: WordCount) -> Self { pub(crate) fn new(word_count: WordCount) -> Self {