aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamian <damian@autistici.org>2019-12-20 19:52:18 +0000
committerDamian <damian@autistici.org>2020-03-02 06:14:40 +0000
commit79c24cda81c84c2c4fd5c24c7680f032395e33e9 (patch)
tree9d88d4dfb2af288d369b146b616fd31d703764dc
parentAdded option to disable archives (diff)
downloadminiserve-79c24cda81c84c2c4fd5c24c7680f032395e33e9.tar.gz
miniserve-79c24cda81c84c2c4fd5c24c7680f032395e33e9.zip
Ignore clippy warning
-rw-r--r--src/listing.rs2
-rw-r--r--src/renderer.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/listing.rs b/src/listing.rs
index 8ee6ead..256e062 100644
--- a/src/listing.rs
+++ b/src/listing.rs
@@ -127,7 +127,7 @@ pub fn file_handler(req: &HttpRequest<crate::MiniserveConfig>) -> Result<fs::Nam
/// List a directory and renders a HTML file accordingly
/// Adapted from https://docs.rs/actix-web/0.7.13/src/actix_web/fs.rs.html#564
-#[allow(clippy::identity_conversion)]
+#[allow(clippy::identity_conversion, clippy::too_many_arguments)]
pub fn directory_listing<S>(
dir: &fs::Directory,
req: &HttpRequest<S>,
diff --git a/src/renderer.rs b/src/renderer.rs
index 0db6f1c..c524aa0 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -50,7 +50,7 @@ pub fn page(
span#top { }
h1.title { "Index of " (serve_path) }
div.toolbar {
- @if download {
+ @if archives {
div.download {
@for compression_method in CompressionMethod::iter() {
(archive_button(compression_method, sort_method, sort_order, color_scheme, default_color_scheme))