Skip to content

Commit

Permalink
fix: add missing ord trait for NameId (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager authored Oct 4, 2024
1 parent e19cf81 commit 53a3b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{internal::arena::ArenaId, Interner};

/// The id associated to a package name
#[repr(transparent)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Ord, PartialOrd)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(transparent))]
pub struct NameId(pub u32);
Expand Down

0 comments on commit 53a3b64

Please sign in to comment.