Skip to content

Commit d9426a3

Browse files
committed
Dont pass objects to anchor reserves calculator by ref-ref
If we're already passing `AChannelManagerRef` and `ChainMonitorRef` to `can_support_additional_anchor_channel` there's no need to take them by reference.
1 parent 3a0875a commit d9426a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/anchor_channel_reserves.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ pub fn can_support_additional_anchor_channel<
290290
>,
291291
>,
292292
>(
293-
context: &AnchorChannelReserveContext, utxos: &[Utxo], a_channel_manager: &AChannelManagerRef,
294-
chain_monitor: &ChainMonitorRef,
293+
context: &AnchorChannelReserveContext, utxos: &[Utxo], a_channel_manager: AChannelManagerRef,
294+
chain_monitor: ChainMonitorRef,
295295
) -> bool
296296
where
297297
AChannelManagerRef::Target: AChannelManager,

0 commit comments

Comments
 (0)