Update dependencies (#753)

This commit is contained in:
David Pedersen
2022-02-22 13:33:10 +01:00
parent 9bffd9d0db
commit 3238174b1c
10 changed files with 24 additions and 25 deletions
+2 -3
View File
@@ -154,17 +154,16 @@ impl IntoResponse for AuthError {
}
}
#[derive(Debug)]
struct Keys {
encoding: EncodingKey,
decoding: DecodingKey<'static>,
decoding: DecodingKey,
}
impl Keys {
fn new(secret: &[u8]) -> Self {
Self {
encoding: EncodingKey::from_secret(secret),
decoding: DecodingKey::from_secret(secret).into_static(),
decoding: DecodingKey::from_secret(secret),
}
}
}