diff --git a/api/src/client.rs b/api/src/client.rs index 44a1a9c2a8..60fd1e35bb 100644 --- a/api/src/client.rs +++ b/api/src/client.rs @@ -125,8 +125,8 @@ where } } -fn build_request<'a>( - url: &'a str, +fn build_request( + url: &str, method: &str, api_secret: Option, body: Option, diff --git a/chain/src/txhashset/txhashset.rs b/chain/src/txhashset/txhashset.rs index 545c3a715e..5dafe142bb 100644 --- a/chain/src/txhashset/txhashset.rs +++ b/chain/src/txhashset/txhashset.rs @@ -329,7 +329,7 @@ impl TxHashSet { /// of blocks to the txhashset and the checking of the current tree roots. /// /// The unit of work is always discarded (always rollback) as this is read-only. -pub fn extending_readonly<'a, F, T>(trees: &'a mut TxHashSet, inner: F) -> Result +pub fn extending_readonly(trees: &mut TxHashSet, inner: F) -> Result where F: FnOnce(&mut Extension<'_>) -> Result, { @@ -366,7 +366,7 @@ where /// Readonly view on the UTXO set. /// Based on the current txhashset output_pmmr. -pub fn utxo_view<'a, F, T>(trees: &'a TxHashSet, inner: F) -> Result +pub fn utxo_view(trees: &TxHashSet, inner: F) -> Result where F: FnOnce(&UTXOView<'_>) -> Result, { @@ -391,7 +391,7 @@ where /// via last_pos. /// We create a new db batch for this view and discard it (rollback) /// when we are done with the view. -pub fn rewindable_kernel_view<'a, F, T>(trees: &'a TxHashSet, inner: F) -> Result +pub fn rewindable_kernel_view(trees: &TxHashSet, inner: F) -> Result where F: FnOnce(&mut RewindableKernelView<'_>) -> Result, { @@ -949,7 +949,9 @@ impl<'a> Extension<'a> { } if output_pos != rproof_pos { - return Err(ErrorKind::Other(format!("output vs rproof MMRs different pos")).into()); + return Err( + ErrorKind::Other(format!("output vs rproof MMRs different pos")).into(), + ); } }