aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 18:08:16 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 18:08:16 +0000
commit4a9711b71674c6b62512dd6286869690d4497bcc (patch)
treecd2d14e7635a96fdcf23d7a70f2b65bb78f515fe /src/main.rs
parentMerged query parameter structs + improved file upload errors (diff)
downloadminiserve-4a9711b71674c6b62512dd6286869690d4497bcc.tar.gz
miniserve-4a9711b71674c6b62512dd6286869690d4497bcc.zip
Made ColorScheme, SortingMethod and SortingOrder enums derive Copy
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index bc8f3f0..a9d44df 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -239,7 +239,7 @@ fn configure_app(app: App<MiniserveConfig>) -> App<MiniserveConfig> {
let path = &app.state().path;
let no_symlinks = app.state().no_symlinks;
let random_route = app.state().random_route.clone();
- let default_color_scheme = app.state().default_color_scheme.clone();
+ let default_color_scheme = app.state().default_color_scheme;
let file_upload = app.state().file_upload;
upload_route = if let Some(random_route) = app.state().random_route.clone() {
format!("/{}/upload", random_route)
@@ -261,7 +261,7 @@ fn configure_app(app: App<MiniserveConfig>) -> App<MiniserveConfig> {
no_symlinks,
file_upload,
random_route.clone(),
- default_color_scheme.clone(),
+ default_color_scheme,
u_r.clone(),
)
}),