diff options
Diffstat (limited to 'src/file_upload.rs')
-rw-r--r-- | src/file_upload.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs index 4a0ae1f..534083c 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -144,10 +144,7 @@ pub fn upload_file(req: &HttpRequest<crate::MiniserveConfig>) -> FutureResponse< .header(header::LOCATION, return_path.to_string()) .finish(), ), - Err(e) => { - let error_description = format!("{}", e); - create_error_response(&error_description, &return_path) - } + Err(e) => create_error_response(&e.to_string(), &return_path), }), ) } |