File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7135,7 +7135,7 @@ where
7135
7135
chan
7136
7136
} else {
7137
7137
let update_actions = peer_state.monitor_update_blocked_actions
7138
- .remove(& channel_id).unwrap_or(Vec::new());
7138
+ .remove(channel_id).unwrap_or(Vec::new());
7139
7139
mem::drop(peer_state_lock);
7140
7140
mem::drop(per_peer_state);
7141
7141
self.handle_monitor_update_completion_actions(update_actions);
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ use bitcoin::hashes::{
30
30
HashEngine as _,
31
31
sha256:: Hash as Sha256 ,
32
32
} ;
33
+ use core:: borrow:: Borrow ;
33
34
use core:: fmt;
34
35
use core:: ops:: Deref ;
35
36
@@ -127,6 +128,12 @@ impl fmt::Display for ChannelId {
127
128
}
128
129
}
129
130
131
+ impl Borrow < [ u8 ] > for ChannelId {
132
+ fn borrow ( & self ) -> & [ u8 ] {
133
+ & self . 0 [ ..]
134
+ }
135
+ }
136
+
130
137
pub use lightning_types:: payment:: { PaymentHash , PaymentPreimage , PaymentSecret } ;
131
138
132
139
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments