]> Untitled Git - bdk/commitdiff
ci(clippy): fix new stricter needless_lifetime errors for rust 1.84
authorSteve Myers <steve@notmandatory.org>
Tue, 21 Jan 2025 18:59:04 +0000 (12:59 -0600)
committerSteve Myers <steve@notmandatory.org>
Tue, 21 Jan 2025 18:59:04 +0000 (12:59 -0600)
https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes

crates/wallet/src/wallet/persisted.rs

index d07c72712f2ea942a7d1b48bf23a3a17b49f9ccc..1bc0a7884ea70b4d3342fb3a1219bf861579d58f 100644 (file)
@@ -241,7 +241,7 @@ impl<P: AsyncWalletPersister> PersistedWallet<P> {
     /// 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<bool, P::Error> {
+    pub async fn persist_async(&mut self, persister: &mut P) -> Result<bool, P::Error> {
         match self.inner.staged_mut() {
             Some(stage) => {
                 P::persist(persister, &*stage).await?;