From 30a548c600deafc001b0004d8ee7e16010c8cc95 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Fri, 6 Oct 2023 12:40:36 -0400 Subject: [PATCH] Temp 18: Fix clippy warnings --- bdk-ffi/src/lib.rs | 6 +++--- bdk-ffi/src/wallet.rs | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bdk-ffi/src/lib.rs b/bdk-ffi/src/lib.rs index 646b7332..1e804abb 100644 --- a/bdk-ffi/src/lib.rs +++ b/bdk-ffi/src/lib.rs @@ -437,9 +437,9 @@ impl Address { // }) // } - fn to_qr_uri(&self) -> String { - self.inner.to_qr_uri() - } + // fn to_qr_uri(&self) -> String { + // self.inner.to_qr_uri() + // } fn as_string(&self) -> String { self.inner.to_string() diff --git a/bdk-ffi/src/wallet.rs b/bdk-ffi/src/wallet.rs index 176901c9..7c97b7e7 100644 --- a/bdk-ffi/src/wallet.rs +++ b/bdk-ffi/src/wallet.rs @@ -30,7 +30,7 @@ use crate::descriptor::Descriptor; use crate::{AddressIndex, AddressInfo, Network}; -use bdk::wallet::AddressIndex as BdkAddressIndex; +// use bdk::wallet::AddressIndex as BdkAddressIndex; use bdk::Error as BdkError; use bdk::Wallet as BdkWallet; use std::sync::{Arc, Mutex, MutexGuard}; @@ -87,15 +87,15 @@ impl Wallet { // ) } - pub fn network(&self) -> Network { - self.get_wallet().network().into() - } + // pub fn network(&self) -> Network { + // self.get_wallet().network().into() + // } - fn get_internal_address(&mut self, address_index: AddressIndex) -> AddressInfo { - self.get_wallet() - .get_internal_address(address_index.into()) - .into() - } + // fn get_internal_address(&mut self, address_index: AddressIndex) -> AddressInfo { + // self.get_wallet() + // .get_internal_address(address_index.into()) + // .into() + // } // fn get_balance(&self) -> Balance { // Balance::from(self.inner.get_balance())