Fixed only clippy warning
parent
ca9d44e7db
commit
5b75b49da0
|
@ -52,7 +52,7 @@ impl<'r> FromRequest<'r> for Jwt {
|
||||||
RbError::Custom("Couldn't get config guard.")
|
RbError::Custom("Couldn't get config guard.")
|
||||||
)));
|
)));
|
||||||
|
|
||||||
let key: Hmac<Sha256> = match Hmac::new_from_slice(&config.key.as_bytes()) {
|
let key: Hmac<Sha256> = match Hmac::new_from_slice(config.key.as_bytes()) {
|
||||||
Ok(key) => key,
|
Ok(key) => key,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
return Outcome::Failure((
|
return Outcome::Failure((
|
||||||
|
|
Loading…
Reference in New Issue