diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/listing.rs | 2 | ||||
-rw-r--r-- | src/renderer.rs | 2 |
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)) |