Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
chore: fix clippy lints and feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 17, 2024
1 parent 6b3dba8 commit d6b71a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/indexers/mempool_blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl MemPoolClient {
///
/// Returns a `Result` containing the `MemPoolClient` instance if
/// successful, or an `Error` if an error occurred.
#[allow(clippy::result_large_err)]
pub fn new(url: &str, config: Config) -> Result<Self, Error> {
let inner = BlockingClient::from_config(url, config)?;
Ok(MemPoolClient { inner })
Expand Down
3 changes: 3 additions & 0 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use std::path::{Path, PathBuf};
use bpstd::XpubDerivable;
#[cfg(feature = "fs")]
use bpwallet::fs::Warning;
#[cfg(feature = "fs")]
use bpwallet::{Wallet, WalletDescr};
use psrgbt::{Psbt, PsbtMeta};
use rgbstd::containers::Transfer;
Expand Down Expand Up @@ -54,6 +55,7 @@ pub struct RgbWallet<
{
stock: Stock<S, H, P>,
wallet: W,
#[cfg(feature = "fs")]
warnings: Vec<Warning>,
#[getter(skip)]
_phantom: PhantomData<K>,
Expand Down Expand Up @@ -93,6 +95,7 @@ where W::Descr: DescriptorRgb<K>
Self {
stock,
wallet,
#[cfg(feature = "fs")]
warnings: none!(),
_phantom: PhantomData,
}
Expand Down

0 comments on commit d6b71a9

Please sign in to comment.