Skip to content

Commit 6bd72d2

Browse files
committed
Refer to return types by the trait that they're defined via
Instead of using the explicit type which is being returned, refer to them as Self::AssociatedType, to make clear to the bindings what type of thing is being returned.
1 parent c971970 commit 6bd72d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ impl KeysInterface for KeysManager {
815815
self.shutdown_pubkey.clone()
816816
}
817817

818-
fn get_channel_keys(&self, _inbound: bool, channel_value_satoshis: u64) -> InMemoryChannelKeys {
818+
fn get_channel_keys(&self, _inbound: bool, channel_value_satoshis: u64) -> Self::ChanKeySigner {
819819
let child_ix = self.channel_child_index.fetch_add(1, Ordering::AcqRel);
820820
let ix_and_nanos: u64 = (child_ix as u64) << 32 | (self.starting_time_nanos as u64);
821821
self.derive_channel_keys(channel_value_satoshis, ix_and_nanos, self.starting_time_secs)

0 commit comments

Comments
 (0)