diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-21 14:14:22 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-21 14:14:22 +0000 |
commit | 6df18a5f6724b5ca010424b4dbf748a7bc78ef4e (patch) | |
tree | fdcf7595fa4a228a7a2e45b522ba7ab1c256bcdc | |
parent | Print error on the web page rather than on the terminal (diff) | |
download | miniserve-6df18a5f6724b5ca010424b4dbf748a7bc78ef4e.tar.gz miniserve-6df18a5f6724b5ca010424b4dbf748a7bc78ef4e.zip |
cargo fmt
-rw-r--r-- | src/listing.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/listing.rs b/src/listing.rs index ccb188c..a9e4f5f 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -261,11 +261,9 @@ pub fn directory_listing<S>( .chunked() .body(Body::Streaming(Box::new(once(Ok(content)))))) } - Err(err) => { - Ok(HttpResponse::Ok() - .status(http::StatusCode::INTERNAL_SERVER_ERROR) - .body(err.to_string())) - } + Err(err) => Ok(HttpResponse::Ok() + .status(http::StatusCode::INTERNAL_SERVER_ERROR) + .body(err.to_string())), } } else { Ok(HttpResponse::Ok() |