From cbd4f6596a5b0efd376c12b337ec01c026ec28cb Mon Sep 17 00:00:00 2001 From: chunningham Date: Tue, 9 Apr 2024 17:39:28 +0200 Subject: [PATCH] allow claimset refs to use btreemap methods (#11) --- src/cwt/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cwt/mod.rs b/src/cwt/mod.rs index 5b62f8e..d97398d 100644 --- a/src/cwt/mod.rs +++ b/src/cwt/mod.rs @@ -122,6 +122,12 @@ impl TryFrom> for ClaimsSet { } } +impl AsRef> for ClaimsSet { + fn as_ref(&self) -> &BTreeMap { + &self.0 + } +} + #[cfg(test)] mod test { use super::*;