aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-05-10 16:38:23 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-05-10 16:38:23 +0000
commit6b708b432648cf5e62e8d61609eff942f885f538 (patch)
treec2ccd3786cb68b123bf90190b9d9c47ec34b9559 /src
parentcargo fmt (diff)
downloadminiserve-6b708b432648cf5e62e8d61609eff942f885f538.tar.gz
miniserve-6b708b432648cf5e62e8d61609eff942f885f538.zip
Fix clippy
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
-rw-r--r--src/renderer.rs1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index bcfda09..bb61edc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -83,9 +83,7 @@ fn run() -> Result<(), ContextualError> {
&& miniserve_config
.path
.symlink_metadata()
- .map_err(|e| {
- ContextualError::IOError("Failed to retrieve symlink's metadata".to_string(), e)
- })?
+ .map_err(|e| ContextualError::IOError("Failed to retrieve symlink's metadata".to_string(), e))?
.file_type()
.is_symlink()
{
diff --git a/src/renderer.rs b/src/renderer.rs
index 098cf91..d1e16ea 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -846,6 +846,7 @@ fn humanize_systemtime(src_time: Option<SystemTime>) -> Option<String> {
}
/// Renders an error on the webpage
+#[allow(clippy::too_many_arguments)]
pub fn render_error(
error_description: &str,
error_code: StatusCode,