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:
parent
7c55c784c3
commit
74b94d80e1
@ -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: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user