diff --git a/src/internal/id.rs b/src/internal/id.rs index 48ed8a6..2a46f60 100644 --- a/src/internal/id.rs +++ b/src/internal/id.rs @@ -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);