@@ -265,10 +265,7 @@ pub fn verifier(
265265}
266266
267267/// Set the content type (cty) header parameter.
268- pub fn with_cty (
269- jws : Jws ( Unsigned , Built ) ,
270- cty : String ,
271- ) -> Jws ( Unsigned , Built ) {
268+ pub fn with_cty ( jws : Jws ( Unsigned , Built ) , cty : String ) -> Jws ( Unsigned , Built ) {
272269 map_unsigned_header ( jws , fn ( h ) { JwsHeader ( .. h , cty : option . Some ( cty ) ) } )
273270}
274271
@@ -319,18 +316,12 @@ pub fn with_header(
319316}
320317
321318/// Set the key ID (kid) header parameter.
322- pub fn with_kid (
323- jws : Jws ( Unsigned , Built ) ,
324- kid : String ,
325- ) -> Jws ( Unsigned , Built ) {
319+ pub fn with_kid ( jws : Jws ( Unsigned , Built ) , kid : String ) -> Jws ( Unsigned , Built ) {
326320 map_unsigned_header ( jws , fn ( h ) { JwsHeader ( .. h , kid : option . Some ( kid ) ) } )
327321}
328322
329323/// Set the type (typ) header parameter (e.g., "JWT").
330- pub fn with_typ (
331- jws : Jws ( Unsigned , Built ) ,
332- typ : String ,
333- ) -> Jws ( Unsigned , Built ) {
324+ pub fn with_typ ( jws : Jws ( Unsigned , Built ) , typ : String ) -> Jws ( Unsigned , Built ) {
334325 map_unsigned_header ( jws , fn ( h ) { JwsHeader ( .. h , typ : option . Some ( typ ) ) } )
335326}
336327
0 commit comments