Skip to content

Commit bc90e4f

Browse files
committed
Switch to inspect_err now that we can
.. addressing a TODO
1 parent 3124fa4 commit bc90e4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,11 +1880,9 @@ where
18801880
};
18811881
let res = funded_channel.initial_commitment_signed_v2(msg, best_block, signer_provider, logger)
18821882
.map(|monitor| (Some(monitor), None))
1883-
// TODO: Change to `inspect_err` when MSRV is high enough.
1884-
.map_err(|err| {
1883+
.inspect_err(|err| {
18851884
// We always expect a `ChannelError` close.
18861885
debug_assert!(matches!(err, ChannelError::Close(_)));
1887-
err
18881886
});
18891887
self.phase = ChannelPhase::Funded(funded_channel);
18901888
res

0 commit comments

Comments
 (0)