diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-05-10 18:17:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 18:17:55 +0000 |
commit | 1b92ddb24ec9d364d8170912e047317eef726c7d (patch) | |
tree | c2ccd3786cb68b123bf90190b9d9c47ec34b9559 /src/main.rs | |
parent | Merge pull request #90 from boastful-squirrel/themed-errors (diff) | |
parent | Fix clippy (diff) | |
download | miniserve-1b92ddb24ec9d364d8170912e047317eef726c7d.tar.gz miniserve-1b92ddb24ec9d364d8170912e047317eef726c7d.zip |
Merge pull request #112 from boastful-squirrel/fix-clippy
Fix Clippy warnings + cargo fmt
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 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() { |