clippy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aode (lion) 2021-12-03 14:51:06 -06:00
parent 94128633c6
commit 0ef704f38c

View file

@ -1,3 +1,6 @@
// need this for ructe
#![allow(clippy::needless_borrow)]
use actix_web::{
body::BodyStream,
http::{
@ -277,7 +280,7 @@ where
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}\n", self.kind)?;
writeln!(f, "{}", self.kind)?;
std::fmt::Display::fmt(&self.context, f)
}
}
@ -499,6 +502,7 @@ async fn full_res(
image(url, req, client).await
}
#[allow(clippy::async_yields_async)]
#[tracing::instrument(name = "Static files")]
async fn static_files(filename: web::Path<String>) -> HttpResponse {
let filename = filename.into_inner();