@@ -72,7 +72,6 @@ impl<ES: Deref, CM: Deref + Clone, K: Deref + Clone, TP: Deref + Clone>
7272where
7373 ES :: Target : EntropySource ,
7474 CM :: Target : AChannelManager ,
75- ES :: Target : EntropySource ,
7675 K :: Target : KVStore ,
7776 TP :: Target : TimeProvider ,
7877{
@@ -277,8 +276,9 @@ where
277276 }
278277
279278 /// Used by LSP to give details to client regarding the status of channel opening.
280- /// Called to respond to client's GetOrder request.
281- /// The LSP continously polls for checking payment confirmation on-chain or lighting
279+ /// Called to respond to client's `GetOrder` request.
280+ ///
281+ /// The LSP continously polls for checking payment confirmation on-chain or Lightning
282282 /// and then responds to client request.
283283 ///
284284 /// Should be called in response to receiving a [`LSPS1ServiceEvent::CheckPaymentConfirmation`] event.
@@ -373,7 +373,7 @@ fn check_range(min: u64, max: u64, value: u64) -> bool {
373373}
374374
375375fn is_valid ( order : & LSPS1OrderParams , options : & LSPS1Options ) -> bool {
376- let bool = check_range (
376+ check_range (
377377 options. min_initial_client_balance_sat ,
378378 options. max_initial_client_balance_sat ,
379379 order. client_balance_sat ,
@@ -385,7 +385,5 @@ fn is_valid(order: &LSPS1OrderParams, options: &LSPS1Options) -> bool {
385385 1 ,
386386 options. max_channel_expiry_blocks . into ( ) ,
387387 order. channel_expiry_blocks . into ( ) ,
388- ) ;
389-
390- bool
388+ )
391389}
0 commit comments