Skip to content

Commit

Permalink
specify lifetime for SdJwtBuilder::insert_claim
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Sep 27, 2024
1 parent 1f37bbe commit ebc05f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ impl<H: Hasher> SdJwtBuilder<H> {
}

/// Adds a new claim to the underlying object.
pub fn insert_claim<K, V>(mut self, key: K, value: V) -> Self
pub fn insert_claim<'a, K, V>(mut self, key: K, value: V) -> Self
where
K: for<'a> Into<Cow<'a, str>>,
K: Into<Cow<'a, str>>,
V: Serialize,
{
let key = key.into().into_owned();
Expand Down

0 comments on commit ebc05f6

Please sign in to comment.