Fix unused import warning and docs link warning

This commit is contained in:
Steve Myers 2020-12-07 10:56:01 -08:00
parent aed2414cad
commit 400b4a85f3
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ use std::sync::Arc;
use bitcoin::Network; use bitcoin::Network;
use clap::AppSettings; use clap::AppSettings;
use log::{debug, error, info, trace, warn, LevelFilter}; use log::{debug, info, warn, LevelFilter};
use rustyline::error::ReadlineError; use rustyline::error::ReadlineError;
use rustyline::Editor; use rustyline::Editor;
use structopt::StructOpt; use structopt::StructOpt;

View File

@ -82,7 +82,7 @@ pub enum Error {
Key(crate::keys::KeyError), Key(crate::keys::KeyError),
/// Descriptor checksum mismatch /// Descriptor checksum mismatch
ChecksumMismatch, ChecksumMismatch,
/// Spending policy is not compatible with this [ScriptType] /// Spending policy is not compatible with this [`ScriptType`](crate::types::ScriptType)
SpendingPolicyRequired(crate::types::ScriptType), SpendingPolicyRequired(crate::types::ScriptType),
#[allow(missing_docs)] #[allow(missing_docs)]
InvalidPolicyPathError(crate::descriptor::policy::PolicyError), InvalidPolicyPathError(crate::descriptor::policy::PolicyError),
@ -90,7 +90,7 @@ pub enum Error {
Signer(crate::wallet::signer::SignerError), Signer(crate::wallet::signer::SignerError),
// Blockchain interface errors // 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 /// This error is thrown when creating the Client for the first time, while recovery attempts are tried
/// during the sync /// during the sync
OfflineClient, OfflineClient,