diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-04-15 19:29:28 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-04-15 19:29:28 +0000 |
commit | 585103ffc6093d6206e6d2dd6c513496d6a48236 (patch) | |
tree | edbe705697331d02b4fa1f130e6319e198c91f12 /src | |
parent | Merge pull request #64 from boastful-squirrel/fix_auth (diff) | |
download | miniserve-585103ffc6093d6206e6d2dd6c513496d6a48236.tar.gz miniserve-585103ffc6093d6206e6d2dd6c513496d6a48236.zip |
Fix tiny lint
Diffstat (limited to 'src')
-rw-r--r-- | src/listing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listing.rs b/src/listing.rs index aa0ba05..5008ed8 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -240,7 +240,7 @@ pub fn directory_listing<S>( } } - let color_scheme = color_scheme.unwrap_or(default_color_scheme.clone()); + let color_scheme = color_scheme.unwrap_or_else(|| default_color_scheme.clone()); if let Some(compression_method) = &download { log::info!( |