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 59b3c4f commit 541c943Copy full SHA for 541c943
lightning/src/util/ser_macros.rs
@@ -61,7 +61,8 @@ macro_rules! encode_tlv_stream {
61
let mut last_seen: Option<u64> = None;
62
$(
63
if let Some(t) = last_seen {
64
- debug_assert!(t <= $type);
+ #[allow(unused_comparisons)] // Note that $type may be 0 making the following comparison always false
65
+ (debug_assert!(t < $type))
66
}
67
last_seen = Some($type);
68
)*
0 commit comments