lohr: fix clippy lint
This commit is contained in:
parent
cd85ace566
commit
c37a390f6c
|
@ -102,7 +102,7 @@ where
|
||||||
let signature = signatures[0];
|
let signature = signatures[0];
|
||||||
let secret = request.guard::<&State<Secret>>().await.unwrap();
|
let secret = request.guard::<&State<Secret>>().await.unwrap();
|
||||||
|
|
||||||
if !validate_signature(&secret.0, &signature, &content) {
|
if !validate_signature(&secret.0, signature, &content) {
|
||||||
return Outcome::Failure((Status::BadRequest, anyhow!("couldn't verify signature")));
|
return Outcome::Failure((Status::BadRequest, anyhow!("couldn't verify signature")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue