Skip to content

Commit

Permalink
allow claimset refs to use btreemap methods (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunningham authored Apr 9, 2024
1 parent 7bb6ad2 commit cbd4f65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cwt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ impl TryFrom<BTreeMap<Value, Value>> for ClaimsSet {
}
}

impl AsRef<BTreeMap<Value, Value>> for ClaimsSet {
fn as_ref(&self) -> &BTreeMap<Value, Value> {
&self.0
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down

0 comments on commit cbd4f65

Please sign in to comment.