diff --git a/src/app.rs b/src/app.rs index c0269337..289d892f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1451,9 +1451,9 @@ impl Dest { } } -impl ToString for Dest { - fn to_string(&self) -> String { - serde_json::to_string(self).unwrap() +impl std::fmt::Display for Dest { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", serde_json::to_string(self).unwrap()) } } diff --git a/src/bin/nomic.rs b/src/bin/nomic.rs index 04f86b67..a0aacda1 100644 --- a/src/bin/nomic.rs +++ b/src/bin/nomic.rs @@ -1,8 +1,6 @@ //! This binary provides the command-line interface for running a Nomic full //! node, as well as client commands for querying and broadcasting transactions. -#![warn(missing_docs)] -#![warn(clippy::missing_docs_in_private_items)] #![feature(trivial_bounds)] #![allow(incomplete_features)] #![feature(specialization)] @@ -13,11 +11,12 @@ use alloy::network::EthereumWallet; #[cfg(feature = "ethereum")] use alloy::signers::local::LocalSigner; -#[cfg(feature = "ethereum")] -use nomic::bitcoin::deposit_index::DepositIndex; use bitcoin::consensus::{Decodable, Encodable}; -use bitcoin::secp256k1::{self, Message}; +#[cfg(feature = "ethereum")] +use bitcoin::secp256k1::Message; +use bitcoin::secp256k1::{self}; + use bitcoin::util::bip32::ExtendedPubKey; use bitcoincore_rpc_async::RpcApi; use bitcoincore_rpc_async::{Auth, Client as BtcClient}; @@ -51,11 +50,9 @@ use std::fs::Permissions; use std::os::unix::fs::PermissionsExt; use std::path::PathBuf; use std::str::FromStr; -use std::sync::Arc; use std::time::SystemTime; use std::time::UNIX_EPOCH; use tendermint_rpc::Client as _; -use tokio::sync::Mutex; const BANNER: &str = r#" ███╗ ██╗ ██████╗ ███╗ ███╗ ██╗ ██████╗ diff --git a/src/bitcoin/relayer.rs b/src/bitcoin/relayer.rs index e471e2b8..443bebf0 100644 --- a/src/bitcoin/relayer.rs +++ b/src/bitcoin/relayer.rs @@ -1,4 +1,3 @@ -#![feature(async_closure)] use super::signatory::Signatory; use super::SignatorySet; use super::SIGSET_THRESHOLD; @@ -11,7 +10,6 @@ use crate::error::Result; use crate::orga::encoding::Encode; use crate::utils::time_now; use bitcoin::consensus::{Decodable, Encodable}; -use bitcoin::TxOut; use bitcoin::Txid; use bitcoin::{hashes::Hash, Block, BlockHash, Transaction}; use bitcoincore_rpc_async::{json::GetBlockHeaderResult, Client as BitcoinRpcClient, RpcApi}; @@ -853,7 +851,7 @@ impl Relayer { let mut matches = Vec::new(); for (vout, output) in tx.output.iter().enumerate() { let mut script_bytes = vec![]; - let encode: usize = output + let _encode: usize = output .script_pubkey .consensus_encode(&mut script_bytes) .unwrap();