Skip to content

Commit

Permalink
Derive Hash for the QoS enum (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen authored Aug 23, 2024
1 parent e8e496d commit 108a390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub(crate) const MAX_PACKET_SIZE: u32 = 0xF_FF_FF_FF;

prim_enum! {
/// Quality of Service
#[derive(serde::Serialize, serde::Deserialize, PartialOrd, Ord)]
#[derive(serde::Serialize, serde::Deserialize, PartialOrd, Ord, Hash)]
pub enum QoS {
/// At most once delivery
///
Expand Down

0 comments on commit 108a390

Please sign in to comment.