From 4ec158ac5e5aa5602fa5be001ea2c05f700cc99a Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Sun, 9 Jun 2019 04:50:58 +0200 Subject: Add dyns --- src/file_upload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/file_upload.rs b/src/file_upload.rs index 537c90c..3ef3a7e 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -20,7 +20,7 @@ fn save_file( field: multipart::Field, file_path: PathBuf, overwrite_files: bool, -) -> Box> { +) -> Box> { if !overwrite_files && file_path.exists() { return Box::new(future::err(ContextualError::CustomError( "File already exists, and the overwrite_files option has not been set".to_string(), @@ -56,7 +56,7 @@ fn handle_multipart( item: multipart::MultipartItem, mut file_path: PathBuf, overwrite_files: bool, -) -> Box> { +) -> Box> { match item { multipart::MultipartItem::Field(field) => { let filename = field -- cgit v1.2.3