Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from vianetwork/bitcoin-lib-clippy-fix
Browse files Browse the repository at this point in the history
fix: clippy fixes
  • Loading branch information
irnb authored Aug 22, 2024
2 parents 0b4eea4 + 85fa6a0 commit 93037b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/lib/via_btc_client/src/client/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bitcoincore_rpc::{
json::{EstimateSmartFeeResult, GetBlockchainInfoResult, ScanTxOutRequest},
Client, RpcApi,
};
use tracing::{debug, error, instrument};
use tracing::{debug, instrument};

use crate::{
traits::BitcoinRpc,
Expand Down
4 changes: 3 additions & 1 deletion core/lib/via_btc_client/src/inscriber/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dead_code)]

use std::collections::HashMap;

use anyhow::{Context, Result};
Expand All @@ -11,7 +13,7 @@ use bitcoin::{
};
use bitcoincore_rpc::{Auth, RawTx};
use secp256k1::Message;
use tracing::{debug, error, info, instrument, warn};
use tracing::{debug, info, instrument, warn};

use crate::{
client::BitcoinClient,
Expand Down
7 changes: 3 additions & 4 deletions core/lib/via_btc_client/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dead_code)]

use async_trait::async_trait;
use bitcoin::{
key::UntweakedPublicKey,
Expand All @@ -10,10 +12,7 @@ use secp256k1::{
};
use types::BitcoinRpcResult;

use crate::{
types,
types::{BitcoinClientResult, BitcoinIndexerResult, FullInscriptionMessage},
};
use crate::{types, types::BitcoinClientResult};

#[async_trait]
pub(crate) trait BitcoinOps: Send + Sync {
Expand Down
3 changes: 0 additions & 3 deletions core/lib/via_btc_client/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use tokio::time::Duration;
use tracing::Level;

use crate::types::BitcoinRpcResult;

pub(crate) async fn with_retry<F, T, E>(
f: F,
Expand Down

0 comments on commit 93037b7

Please sign in to comment.