aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-05-06 18:51:44 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-05-06 18:51:44 +0000
commit7419db7bc413269cb140920372a4f3f43533f853 (patch)
tree2a5f899783383b7759eb6cc62ce1745fe8dae622 /src
parentBump deps (diff)
downloadminiserve-7419db7bc413269cb140920372a4f3f43533f853.tar.gz
miniserve-7419db7bc413269cb140920372a4f3f43533f853.zip
Allow clippy::format_push_string
I think if we followed the lint the code would be less readable for no real benefit.
Diffstat (limited to 'src')
-rw-r--r--src/listing.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/listing.rs b/src/listing.rs
index 05e800c..805c5a0 100644
--- a/src/listing.rs
+++ b/src/listing.rs
@@ -1,3 +1,8 @@
+#![allow(clippy::format_push_string)]
+use std::io;
+use std::path::{Component, Path, PathBuf};
+use std::time::SystemTime;
+
use actix_web::dev::ServiceResponse;
use actix_web::web::Query;
use actix_web::{HttpMessage, HttpRequest, HttpResponse};
@@ -5,9 +10,6 @@ use bytesize::ByteSize;
use percent_encoding::{percent_decode_str, utf8_percent_encode};
use qrcodegen::{QrCode, QrCodeEcc};
use serde::Deserialize;
-use std::io;
-use std::path::{Component, Path, PathBuf};
-use std::time::SystemTime;
use strum_macros::{Display, EnumString};
use crate::archive::ArchiveMethod;