Decouple lifetimes for trait implementations that used to comprise KeysInterface.
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index efbda4af0a3d483a559df11c3078f0efcc31b511..5434e77947cd7b513abb9bae8c369ddb493dfbec 100644 (file)
@@ -3704,9 +3704,9 @@ where
 
 const MAX_ALLOC_SIZE: usize = 64*1024;
 
-impl<'a, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'a SP)>
+impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP)>
                for (BlockHash, ChannelMonitor<SP::Signer>) {
-       fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'a SP)) -> Result<Self, DecodeError> {
+       fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'b SP)) -> Result<Self, DecodeError> {
                macro_rules! unwrap_obj {
                        ($key: expr) => {
                                match $key {