Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmittag committed Mar 25, 2024
1 parent c1954c1 commit 1f7d26a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions kuksa_databroker/databroker/src/authorization/jwt/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ AEiqOjPq0D6X45wCzIwjILUCAwEAAQ==
let decoder = Decoder::new(pub_key).expect("Creation of decoder should succeed");

match decoder.decode(token) {
Ok(claims) => {
match Permissions::try_from(claims){
Ok(perm) => panic!("decode should fail but succeeded with:{:?}", perm),
Err(err) => assert_eq!(err, Error::ClaimsError)
}
}
Ok(claims) => match Permissions::try_from(claims) {
Ok(perm) => panic!("decode should fail but succeeded with:{:?}", perm),
Err(err) => assert_eq!(err, Error::ClaimsError),
},
Err(err) => panic!("decode should succeed but failed with:{}", err),
}
}
Expand Down

0 comments on commit 1f7d26a

Please sign in to comment.