]> git.bitcoin.ninja Git - rust-lightning/commit
Enforce compile-time check for flag getters and setters
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 8 Dec 2023 19:33:06 +0000 (11:33 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 29 Jan 2024 22:00:06 +0000 (14:00 -0800)
commit25ec63f70e7195ac4984ce27d99f0de425518e7b
treebee8e693728ce9a3193ca3c65aecb27e6af5d695
parent9ab7a48ff1887fe4ef74877f5c35d67e15e3ceeb
Enforce compile-time check for flag getters and setters

This ensures that we cannot define or use flag getters/setters on
`ChannelState` variants in which said flag is not valid.
lightning/src/ln/channel.rs