File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -94,4 +94,5 @@ RUSTFLAGS='-D warnings' cargo clippy -- \
94
94
-A clippy::unnecessary_unwrap \
95
95
-A clippy::unused_unit \
96
96
-A clippy::useless_conversion \
97
- -A clippy::unnecessary_map_or ` # to be removed once we hit MSRV 1.70`
97
+ -A clippy::unnecessary_map_or ` # to be removed once we hit MSRV 1.70` \
98
+ -A clippy::manual_repeat_n ` # to be removed once we hit MSRV 1.86`
Original file line number Diff line number Diff line change 59
59
//! - `SCIDPrivacy` - supply channel aliases for routing
60
60
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
61
61
//! - `PaymentMetadata` - include additional data in invoices which is passed to recipients in the
62
- //! onion.
63
- //! (see [BOLT-11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md) for
64
- //! more).
62
+ //! onion.
63
+ //! (see [BOLT-11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md) for
64
+ //! more).
65
65
//! - `ZeroConf` - supports accepting HTLCs and using channels prior to funding confirmation
66
- //! (see
67
- //! [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-channel_ready-message)
68
- //! for more info).
66
+ //! (see
67
+ //! [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-channel_ready-message)
68
+ //! for more info).
69
69
//! - `Keysend` - send funds to a node without an invoice
70
70
//! (see the [`Keysend` feature assignment proposal](https://github.com/lightning/bolts/issues/605#issuecomment-606679798) for more information).
71
71
//! - `Trampoline` - supports receiving and forwarding Trampoline payments
Original file line number Diff line number Diff line change @@ -1153,7 +1153,7 @@ pub(crate) const MIN_AFFORDABLE_HTLC_COUNT: usize = 4;
1153
1153
///
1154
1154
/// * The expected interval between ticks (1 minute).
1155
1155
/// * The average convergence delay of updates across the network, i.e., ~300 seconds on average
1156
- /// for a node to see an update as seen on `<https://arxiv.org/pdf/2205.12737.pdf>`.
1156
+ /// for a node to see an update as seen on `<https://arxiv.org/pdf/2205.12737.pdf>`.
1157
1157
/// * `EXPIRE_PREV_CONFIG_TICKS` = convergence_delay / tick_interval
1158
1158
pub(crate) const EXPIRE_PREV_CONFIG_TICKS: usize = 5;
1159
1159
@@ -8548,10 +8548,7 @@ impl<SP: Deref> FundedChannel<SP> where
8548
8548
Ok(res) => res,
8549
8549
Err(_) => return None,
8550
8550
};
8551
- match self.sign_channel_announcement(node_signer, announcement) {
8552
- Ok(res) => Some(res),
8553
- Err(_) => None,
8554
- }
8551
+ self.sign_channel_announcement(node_signer, announcement).ok()
8555
8552
}
8556
8553
8557
8554
/// May panic if called on a channel that wasn't immediately-previously
You can’t perform that action at this time.
0 commit comments