1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00

Fix a few clippy lints

This commit is contained in:
Roman Zeyde 2021-09-23 23:20:25 +03:00
parent 7c55c784c3
commit 74b94d80e1

View File

@ -131,7 +131,7 @@ impl Rpc {
let signal = Signal::new();
tracker
.sync(&Daemon::connect(&config)?, signal.exit_flag())
.sync(&Daemon::connect(config)?, signal.exit_flag())
.context("initial sync failed")?;
Ok(Self {
@ -236,7 +236,7 @@ impl Rpc {
(scripthash,): (ScriptHash,),
) -> Result<Value> {
let balance = match client.scripthashes.get(&scripthash) {
Some(status) => self.tracker.get_balance(&status),
Some(status) => self.tracker.get_balance(status),
None => {
warn!(
"blockchain.scripthash.get_balance called for unsubscribed scripthash: {}",