@@ -468,11 +468,11 @@ impl ChannelDetails {
468468
469469 pub ( super ) fn from_channel_context < SP : Deref , F : Deref > (
470470 context : & ChannelContext < SP > , best_block_height : u32 , latest_features : InitFeatures ,
471- fee_estimator : & LowerBoundedFeeEstimator < F >
471+ fee_estimator : & LowerBoundedFeeEstimator < F > ,
472472 ) -> Self
473473 where
474474 SP :: Target : SignerProvider ,
475- F :: Target : FeeEstimator
475+ F :: Target : FeeEstimator ,
476476 {
477477 let balance = context. get_available_balances ( fee_estimator) ;
478478 let ( to_remote_reserve_satoshis, to_self_reserve_satoshis) =
@@ -490,15 +490,26 @@ impl ChannelDetails {
490490 // Else `Channel::get_counterparty_htlc_minimum_msat` could return the
491491 // default `0` value set by `Channel::new_outbound`.
492492 outbound_htlc_minimum_msat : if context. have_received_message ( ) {
493- Some ( context. get_counterparty_htlc_minimum_msat ( ) ) } else { None } ,
493+ Some ( context. get_counterparty_htlc_minimum_msat ( ) )
494+ } else {
495+ None
496+ } ,
494497 outbound_htlc_maximum_msat : context. get_counterparty_htlc_maximum_msat ( ) ,
495498 } ,
496499 funding_txo : context. get_funding_txo ( ) ,
497500 // Note that accept_channel (or open_channel) is always the first message, so
498501 // `have_received_message` indicates that type negotiation has completed.
499- channel_type : if context. have_received_message ( ) { Some ( context. get_channel_type ( ) . clone ( ) ) } else { None } ,
502+ channel_type : if context. have_received_message ( ) {
503+ Some ( context. get_channel_type ( ) . clone ( ) )
504+ } else {
505+ None
506+ } ,
500507 short_channel_id : context. get_short_channel_id ( ) ,
501- outbound_scid_alias : if context. is_usable ( ) { Some ( context. outbound_scid_alias ( ) ) } else { None } ,
508+ outbound_scid_alias : if context. is_usable ( ) {
509+ Some ( context. outbound_scid_alias ( ) )
510+ } else {
511+ None
512+ } ,
502513 inbound_scid_alias : context. latest_inbound_scid_alias ( ) ,
503514 channel_value_satoshis : context. get_value_satoshis ( ) ,
504515 feerate_sat_per_1000_weight : Some ( context. get_feerate_sat_per_1000_weight ( ) ) ,
0 commit comments