From 7419db7bc413269cb140920372a4f3f43533f853 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 6 May 2022 20:51:44 +0200 Subject: Allow clippy::format_push_string I think if we followed the lint the code would be less readable for no real benefit. --- src/listing.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/listing.rs') 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; -- cgit v1.2.3