From 8f3d5b70416e9275fdd0953181dee3bd6c6b0c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Pej=C5=A1a?= Date: Fri, 29 Mar 2019 17:47:33 +0100 Subject: Fix syntax error and clippy warnings. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 935d619..c8c13ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -187,10 +187,10 @@ fn configure_app(app: App) -> App { let path = &app.state().path; let no_symlinks = app.state().no_symlinks; let random_route = app.state().random_route.clone(); - let file_upload = app.state().file_upload.clone(); + let file_upload = app.state().file_upload; upload_route = match app.state().random_route.clone() { Some(random_route) => format!("/{}/upload", random_route), - None => format!("/upload"), + None => "/upload".to_string(), }; if path.is_file() { None -- cgit v1.2.3