Skip to content

Commit

Permalink
ci(clippy): fix missing docs errors for rust 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Jan 6, 2025
1 parent 341b869 commit f1dac61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ pub(crate) trait DatabaseUtils: Database {
impl<T: Database> DatabaseUtils for T {}

#[cfg(test)]
#[allow(missing_docs)]
pub mod test {
use bitcoin::consensus::encode::deserialize;
use bitcoin::consensus::serialize;
Expand Down
2 changes: 1 addition & 1 deletion src/keys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ impl std::fmt::Display for KeyError {
impl std::error::Error for KeyError {}

#[cfg(test)]
pub mod test {
mod test {
use bitcoin::bip32;

use super::*;
Expand Down
5 changes: 4 additions & 1 deletion src/wallet/coin_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ use std::convert::TryInto;
/// overridden
#[cfg(not(test))]
pub type DefaultCoinSelectionAlgorithm = BranchAndBoundCoinSelection;

/// Default deterministic coin selection algorithm for testing used by [`TxBuilder`](super::tx_builder::TxBuilder) if not
/// overridden
#[cfg(test)]
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection; // make the tests more predictable
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection;

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

0 comments on commit f1dac61

Please sign in to comment.