diff options
author | Billy Bradley <billy@squeno.com> | 2021-10-14 11:46:51 +0000 |
---|---|---|
committer | Billy Bradley <billy@squeno.com> | 2021-10-14 11:46:51 +0000 |
commit | 6090cd5e297c5b54ee385b0039794607e809e029 (patch) | |
tree | c6c1cd7ab5de4155b3010d841521cb8df39689d9 /src/main.rs | |
parent | Use NamedFile as default handler to simplify --spa-index option implementation (diff) | |
download | miniserve-6090cd5e297c5b54ee385b0039794607e809e029.tar.gz miniserve-6090cd5e297c5b54ee385b0039794607e809e029.zip |
Fix formatting
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7420888..32fcdec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -323,7 +323,7 @@ fn configure_app(app: &mut web::ServiceConfig, conf: &MiniserveConfig) { let files = match &conf.spa_index { Some(spa_index_file) => files.default_handler( NamedFile::open(&conf.path.join(spa_index_file)) - .expect("Cant open SPA index file.") + .expect("Cant open SPA index file."), ), None => files.default_handler(web::to(error_404)), }; |