From cabc1539cea978202569fb51b292dc979be94143 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 26 Jun 2020 16:47:45 +0200 Subject: Make clippy and cargo fmt happy --- src/file_upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file_upload.rs') diff --git a/src/file_upload.rs b/src/file_upload.rs index 6e49f20..f9bf002 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -173,7 +173,7 @@ pub fn upload_file( }; // If the target path is under the app root directory, save the file. - let target_dir = match &app_root_dir.clone().join(upload_path).canonicalize() { + let target_dir = match &app_root_dir.join(upload_path).canonicalize() { Ok(path) if path.starts_with(&app_root_dir) => path.clone(), _ => { let err = ContextualError::InvalidHTTPRequestError( -- cgit v1.2.3