From 9c02c37b18a5260f9e5f12b576d2b5d072220030 Mon Sep 17 00:00:00 2001 From: Damian Date: Fri, 20 Dec 2019 20:56:42 +0100 Subject: Fixed clippy warnings --- 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 3ef3a7e..b79e8ff 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -197,7 +197,7 @@ pub fn upload_file( .then(move |e| match e { Ok(_) => future::ok( HttpResponse::SeeOther() - .header(header::LOCATION, return_path.to_string()) + .header(header::LOCATION, return_path) .finish(), ), Err(e) => create_error_response( -- cgit v1.2.3