diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-05-02 23:04:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 23:04:07 +0000 |
commit | c0ef2fbf569047185ea472702523d7c1b54c030a (patch) | |
tree | 478ff421f74e21d26f8e18ec8f030f84ce57a183 /src/main.rs | |
parent | Add note about empty arrays (diff) | |
parent | Merge branch 'new-clippy-experiment' into new-clippy (diff) | |
download | miniserve-c0ef2fbf569047185ea472702523d7c1b54c030a.tar.gz miniserve-c0ef2fbf569047185ea472702523d7c1b54c030a.zip |
Merge pull request #99 from KSXGitHub/new-clippy
A better Clippy integration
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index c1bb0aa..ea58fc6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -83,12 +83,12 @@ fn run() -> Result<(), ContextualError> { && miniserve_config .path .symlink_metadata() - .map_err(|e| { + .map_err(|e| ContextualError::IOError( "Failed to retrieve symlink's metadata".to_string(), e, ) - })? + )? .file_type() .is_symlink() { |