This commit is contained in:
parent
94128633c6
commit
0ef704f38c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue