]> Untitled Git - bdk/commitdiff
Fix unused import warning and docs link warning
authorSteve Myers <steve@notmandatory.org>
Mon, 7 Dec 2020 18:56:01 +0000 (10:56 -0800)
committerSteve Myers <steve@notmandatory.org>
Mon, 7 Dec 2020 19:28:25 +0000 (11:28 -0800)
examples/repl.rs
src/error.rs

index f3b2887d41c49252fb0b61e2a18b35e6e9d85b03..1638fbe7c08ffc107a86cb6514f6ac20d6972f04 100644 (file)
@@ -29,7 +29,7 @@ use std::sync::Arc;
 
 use bitcoin::Network;
 use clap::AppSettings;
-use log::{debug, error, info, trace, warn, LevelFilter};
+use log::{debug, info, warn, LevelFilter};
 use rustyline::error::ReadlineError;
 use rustyline::Editor;
 use structopt::StructOpt;
index 78902f5e16dab509262cdb5994cf288236d06e09..8273e0e76913b1862aa9faee5b02a7ec76932fd0 100644 (file)
@@ -82,7 +82,7 @@ pub enum Error {
     Key(crate::keys::KeyError),
     /// Descriptor checksum mismatch
     ChecksumMismatch,
-    /// Spending policy is not compatible with this [ScriptType]
+    /// Spending policy is not compatible with this [`ScriptType`](crate::types::ScriptType)
     SpendingPolicyRequired(crate::types::ScriptType),
     #[allow(missing_docs)]
     InvalidPolicyPathError(crate::descriptor::policy::PolicyError),
@@ -90,7 +90,7 @@ pub enum Error {
     Signer(crate::wallet::signer::SignerError),
 
     // Blockchain interface errors
-    /// Thrown when trying to call a method that requires a network connection, [Wallet::sync] and [Wallet::broadcast]
+    /// Thrown when trying to call a method that requires a network connection, [`Wallet::sync`](crate::Wallet::sync) and [`Wallet::broadcast`](crate::Wallet::broadcast)
     /// This error is thrown when creating the Client for the first time, while recovery attempts are tried
     /// during the sync
     OfflineClient,