We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bcd1b6 commit 2a8c937Copy full SHA for 2a8c937
lightning/src/ln/msgs.rs
@@ -788,8 +788,8 @@ pub fn accountable_from_bool(value: bool) -> ExperimentalAccountable {
788
}
789
790
/// Converts the accountable signal on the wire to a boolean signal.
791
-pub fn accountable_into_bool(accountable: ExperimentalAccountable) -> Option<bool> {
792
- accountable.map(|v| v == 7)
+pub fn accountable_into_bool(accountable: ExperimentalAccountable) -> bool {
+ accountable.is_some_and(|v| v == 7)
793
794
795
/// An [`onion message`] to be sent to or received from a peer.
0 commit comments