Skip to content

Commit bbd0658

Browse files
committed
ci(clippy): fix missing docs errors for rust 1.83
1 parent 341b869 commit bbd0658

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/database/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ pub(crate) trait DatabaseUtils: Database {
214214
impl<T: Database> DatabaseUtils for T {}
215215

216216
#[cfg(test)]
217+
#[allow(missing_docs)]
217218
pub mod test {
218219
use bitcoin::consensus::encode::deserialize;
219220
use bitcoin::consensus::serialize;

src/keys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ impl std::fmt::Display for KeyError {
949949
impl std::error::Error for KeyError {}
950950

951951
#[cfg(test)]
952-
pub mod test {
952+
mod test {
953953
use bitcoin::bip32;
954954

955955
use super::*;

src/wallet/coin_selection.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ use std::convert::TryInto;
119119
/// overridden
120120
#[cfg(not(test))]
121121
pub type DefaultCoinSelectionAlgorithm = BranchAndBoundCoinSelection;
122+
123+
/// Default deterministic coin selection algorithm for testing used by [`TxBuilder`](super::tx_builder::TxBuilder) if not
124+
/// overridden
122125
#[cfg(test)]
123-
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection; // make the tests more predictable
126+
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection;
124127

125128
// Base weight of a Txin, not counting the weight needed for satisfying it.
126129
// prev_txid (32 bytes) + prev_vout (4 bytes) + sequence (4 bytes)

0 commit comments

Comments
 (0)