File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ impl TryFrom<&Jwk> for DecodingKey {
277277/// // Claims is a struct that implements Deserialize
278278/// let token_message = decode::<Claims>(&token, &DecodingKey::from_secret("secret".as_ref()), &Validation::new(Algorithm::HS256));
279279/// ```
280- pub fn decode < T : DeserializeOwned + Clone > (
280+ pub fn decode < T : DeserializeOwned > (
281281 token : impl AsRef < [ u8 ] > ,
282282 key : & DecodingKey ,
283283 validation : & Validation ,
@@ -303,9 +303,7 @@ pub fn decode<T: DeserializeOwned + Clone>(
303303/// Decode a JWT with NO VALIDATION
304304///
305305/// DANGER: This performs zero validation on the JWT
306- pub fn insecure_decode < T : DeserializeOwned + Clone > (
307- token : impl AsRef < [ u8 ] > ,
308- ) -> Result < TokenData < T > > {
306+ pub fn insecure_decode < T : DeserializeOwned > ( token : impl AsRef < [ u8 ] > ) -> Result < TokenData < T > > {
309307 let token = token. as_ref ( ) ;
310308
311309 let ( _, message) = expect_two ! ( token. rsplitn( 2 , |b| * b == b'.' ) ) ;
You can’t perform that action at this time.
0 commit comments