]> Untitled Git - bdk/commitdiff
Remove trait bounds on Wallet struct
authorLLFourn <lloyd.fourn@gmail.com>
Tue, 24 Nov 2020 01:40:58 +0000 (12:40 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Tue, 24 Nov 2020 01:40:58 +0000 (12:40 +1100)
see: https://github.com/rust-lang/api-guidelines/issues/6

src/wallet/mod.rs

index 9b4f44482a38cd2c24a24b378e8493f333e8e623..f817d6411ed4b8e775d08a8a71abd62411a81d46 100644 (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>,