Skip to content

Commit e12d88d

Browse files
authored
Merge pull request #1093 from TheBlueMatt/2021-09-type-explicit-bounds
Make `ChainMonitor::get_claimable_balances` take a slice of refs
2 parents aad1803 + d718822 commit e12d88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/chain/chainmonitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ where C::Target: chain::Filter,
150150
///
151151
/// See [`ChannelMonitor::get_claimable_balances`] for more details on the exact criteria for
152152
/// inclusion in the return value.
153-
pub fn get_claimable_balances(&self, ignored_channels: &[ChannelDetails]) -> Vec<Balance> {
153+
pub fn get_claimable_balances(&self, ignored_channels: &[&ChannelDetails]) -> Vec<Balance> {
154154
let mut ret = Vec::new();
155155
let monitors = self.monitors.read().unwrap();
156156
for (_, monitor) in monitors.iter().filter(|(funding_outpoint, _)| {

0 commit comments

Comments
 (0)