Remove trait bounds on Wallet struct

see: https://github.com/rust-lang/api-guidelines/issues/6
This commit is contained in:
LLFourn 2020-11-24 12:40:58 +11:00
parent acc0ae14ec
commit dd35903660
No known key found for this signature in database
GPG Key ID: A27093B54DA11F65

View File

@ -84,7 +84,7 @@ pub type OfflineWallet<D> = Wallet<OfflineBlockchain, D>;
/// A wallet can be either "online" if the [`blockchain`](crate::blockchain) type provided
/// implements [`Blockchain`], or "offline" [`OfflineBlockchain`] is used. Offline wallets only expose
/// methods that don't need any interaction with the blockchain to work.
pub struct Wallet<B: BlockchainMarker, D: BatchDatabase> {
pub struct Wallet<B, D> {
descriptor: ExtendedDescriptor,
change_descriptor: Option<ExtendedDescriptor>,