Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cobward committed Apr 11, 2024
1 parent a078036 commit 4ba4fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cwt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl ClaimsSet {
/// Returns an error if the previous value found cannot be parsed
/// into the expected claim structure.
pub fn insert_claim<T: Claim>(&mut self, claim: T) -> Result<Option<T>, Error> {
match self.0.insert(T::key().into(), claim.into()) {
match self.0.insert(T::key(), claim.into()) {
None => Ok(None),
Some(v) => v.try_into().map_or_else(
|e| Err(Error::UnableToParseClaim(e)),
Expand Down

0 comments on commit 4ba4fcb

Please sign in to comment.