mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Remove needless lifetimes (#2845)
* Remove lifetimes that could be elided * rustfmt
This commit is contained in:
parent
f17dd5fa44
commit
249fe03d5c
2 changed files with 5 additions and 5 deletions
|
@ -125,8 +125,8 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_request<'a>(
|
fn build_request(
|
||||||
url: &'a str,
|
url: &str,
|
||||||
method: &str,
|
method: &str,
|
||||||
api_secret: Option<String>,
|
api_secret: Option<String>,
|
||||||
body: Option<String>,
|
body: Option<String>,
|
||||||
|
|
|
@ -329,7 +329,7 @@ impl TxHashSet {
|
||||||
/// of blocks to the txhashset and the checking of the current tree roots.
|
/// 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.
|
/// 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<T, Error>
|
pub fn extending_readonly<F, T>(trees: &mut TxHashSet, inner: F) -> Result<T, Error>
|
||||||
where
|
where
|
||||||
F: FnOnce(&mut Extension<'_>) -> Result<T, Error>,
|
F: FnOnce(&mut Extension<'_>) -> Result<T, Error>,
|
||||||
{
|
{
|
||||||
|
@ -366,7 +366,7 @@ where
|
||||||
|
|
||||||
/// Readonly view on the UTXO set.
|
/// Readonly view on the UTXO set.
|
||||||
/// Based on the current txhashset output_pmmr.
|
/// Based on the current txhashset output_pmmr.
|
||||||
pub fn utxo_view<'a, F, T>(trees: &'a TxHashSet, inner: F) -> Result<T, Error>
|
pub fn utxo_view<F, T>(trees: &TxHashSet, inner: F) -> Result<T, Error>
|
||||||
where
|
where
|
||||||
F: FnOnce(&UTXOView<'_>) -> Result<T, Error>,
|
F: FnOnce(&UTXOView<'_>) -> Result<T, Error>,
|
||||||
{
|
{
|
||||||
|
@ -391,7 +391,7 @@ where
|
||||||
/// via last_pos.
|
/// via last_pos.
|
||||||
/// We create a new db batch for this view and discard it (rollback)
|
/// We create a new db batch for this view and discard it (rollback)
|
||||||
/// when we are done with the view.
|
/// when we are done with the view.
|
||||||
pub fn rewindable_kernel_view<'a, F, T>(trees: &'a TxHashSet, inner: F) -> Result<T, Error>
|
pub fn rewindable_kernel_view<F, T>(trees: &TxHashSet, inner: F) -> Result<T, Error>
|
||||||
where
|
where
|
||||||
F: FnOnce(&mut RewindableKernelView<'_>) -> Result<T, Error>,
|
F: FnOnce(&mut RewindableKernelView<'_>) -> Result<T, Error>,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue