Update dependencies (#753)

This commit is contained in:
David Pedersen
2022-02-12 17:16:14 +00:00
committed by GitHub
parent 1e51ea9423
commit 409a6651f5
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),
}
}
}