From: Steve Myers Date: Tue, 21 Jan 2025 18:59:04 +0000 (-0600) Subject: ci(clippy): fix new stricter needless_lifetime errors for rust 1.84 X-Git-Tag: bitcoind_rpc-0.18.0~9^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.PersistedWallet.html?a=commitdiff_plain;h=1ccc29e7153c87a4cd4dc5c599ff8ff4ccf23a57;p=bdk ci(clippy): fix new stricter needless_lifetime errors for rust 1.84 https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes --- diff --git a/crates/wallet/src/wallet/persisted.rs b/crates/wallet/src/wallet/persisted.rs index d07c7271..1bc0a788 100644 --- a/crates/wallet/src/wallet/persisted.rs +++ b/crates/wallet/src/wallet/persisted.rs @@ -241,7 +241,7 @@ impl PersistedWallet

{ /// Returns whether any new changes were persisted. /// /// If the `persister` errors, the staged changes will not be cleared. - pub async fn persist_async<'a>(&'a mut self, persister: &mut P) -> Result { + pub async fn persist_async(&mut self, persister: &mut P) -> Result { match self.inner.staged_mut() { Some(stage) => { P::persist(persister, &*stage).await?;