Skip to content

Commit 6824c73

Browse files
committed
gossip: update GossipFlags to use u32
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 728db3f commit 6824c73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gossip/nostr-gossip/src/flags.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
/// Gossip flags
44
#[derive(Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
5-
pub struct GossipFlags(u16);
5+
pub struct GossipFlags(u32);
66

77
impl GossipFlags {
88
/// Empty flags.
@@ -47,9 +47,9 @@ impl GossipFlags {
4747
self.0 & other.0 != 0
4848
}
4949

50-
/// Get flags as [`u16`].
50+
/// Get flags as [`u32`].
5151
#[inline]
52-
pub const fn as_u16(&self) -> u16 {
52+
pub const fn as_u32(&self) -> u32 {
5353
self.0
5454
}
5555
}

0 commit comments

Comments
 (0)