Skip to content

Commit c963c90

Browse files
committed
Fix lint warnings
A new version of clippy complains about unused attributes. They *are* used by jsonwebtoken when validating tokens, but we don't read the values anywhere in our code.
1 parent 2438db9 commit c963c90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/web/auth/jwt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ impl Jwks {
3737
#[derive(Debug, Deserialize)]
3838
struct Claims {
3939
/// Audience (who or that the token is intended for). E.g. "https://api.xsnippet.org".
40+
#[allow(unused)]
4041
aud: String,
4142
/// Issuer (who created and signed this token). E.g. "https://xsnippet.eu.auth0.com/".
43+
#[allow(unused)]
4244
iss: String,
4345
/// Subject (whom the token refers to). E.g. "[email protected]".
4446
sub: String,
4547
/// Expiration time (seconds since Unix epoch).
48+
#[allow(unused)]
4649
exp: usize,
4750
/// Subject permissions (e.g. vec!["import"])
4851
permissions: Vec<Permission>,

0 commit comments

Comments
 (0)