Skip to content

Commit b81fedc

Browse files
committed
Give the get_change_destination_script future access to self
Its generally useful for trait methods to be able to access `self`, sadly our definition of `get_change_destination_script` was screwed up and couldn't. Luckily its an easy fix as none of the callsites care about the extra `self` lifetime.
1 parent 19a9dbd commit b81fedc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sign/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ pub trait ChangeDestinationSource {
10411041
///
10421042
/// This method should return a different value each time it is called, to avoid linking
10431043
/// on-chain funds controlled to the same user.
1044-
fn get_change_destination_script<'a>(&self) -> AsyncResult<'a, ScriptBuf>;
1044+
fn get_change_destination_script<'a>(&'a self) -> AsyncResult<'a, ScriptBuf>;
10451045
}
10461046

10471047
/// A synchronous helper trait that describes an on-chain wallet capable of returning a (change) destination script.
@@ -1073,7 +1073,7 @@ impl<T: Deref> ChangeDestinationSource for ChangeDestinationSourceSyncWrapper<T>
10731073
where
10741074
T::Target: ChangeDestinationSourceSync,
10751075
{
1076-
fn get_change_destination_script<'a>(&self) -> AsyncResult<'a, ScriptBuf> {
1076+
fn get_change_destination_script<'a>(&'a self) -> AsyncResult<'a, ScriptBuf> {
10771077
let script = self.0.get_change_destination_script();
10781078
Box::pin(async move { script })
10791079
}

0 commit comments

Comments
 (0)