From de24d0cdc72cc4f9bfcfea3935ab88cc43c5f885 Mon Sep 17 00:00:00 2001 From: "Manu [tennox]" Date: Sat, 4 May 2024 13:36:50 +0100 Subject: [PATCH] fix: Ability needs PartialOrd, not Ord (Afaik) Abilities can be compared, but aren't necessarily related. Nor do they have a 'total order' --- ucan/src/capability/semantics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucan/src/capability/semantics.rs b/ucan/src/capability/semantics.rs index 65966fb4..6c1c22e9 100644 --- a/ucan/src/capability/semantics.rs +++ b/ucan/src/capability/semantics.rs @@ -7,7 +7,7 @@ pub trait Scope: ToString + TryFrom + PartialEq + Clone { fn contains(&self, other: &Self) -> bool; } -pub trait Ability: Ord + TryFrom + ToString + Clone {} +pub trait Ability: PartialOrd + TryFrom + ToString + Clone {} #[derive(Clone, Eq, PartialEq)] pub enum ResourceUri