diff --git a/examples/repl.rs b/examples/repl.rs index f3b2887d..1638fbe7 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -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; diff --git a/src/error.rs b/src/error.rs index 78902f5e..8273e0e7 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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,