lohr: fix clippy lint

This commit is contained in:
Antoine Martin 2021-09-04 18:16:07 +02:00
parent cd85ace566
commit c37a390f6c

View file

@ -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")));
} }