diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 0af19a6..e0d5ec5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -177,7 +177,10 @@ impl MiniserveConfig { let tls_rustls_server_config = None; // If spa_index is set but index is unset, copy the former into the latter - let index = args.index.or(args.spa_index.clone()); + let index = match args.index { + Some(index) => Some(index), + None => args.spa_index.clone(), + }; Ok(MiniserveConfig { verbose: args.verbose, |