From 53a3b6444b547ece4812c3d63ad2468aca8e393c Mon Sep 17 00:00:00 2001 From: Tim de Jager Date: Fri, 4 Oct 2024 11:42:05 +0200 Subject: [PATCH] fix: add missing ord trait for NameId (#73) --- src/internal/id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);