From 0a6fa6507542557aeb0fb1abcd70e6c4abdd2c67 Mon Sep 17 00:00:00 2001 From: Geometrically Date: Thu, 31 Dec 2020 10:09:57 -0700 Subject: [PATCH] Fix clippy --- src/file_hosting/s3_host.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_hosting/s3_host.rs b/src/file_hosting/s3_host.rs index b2fb3dc57..826960c86 100644 --- a/src/file_hosting/s3_host.rs +++ b/src/file_hosting/s3_host.rs @@ -60,7 +60,7 @@ impl FileHost for S3Host { .header(reqwest::header::CONTENT_TYPE, "application/json") .header( reqwest::header::AUTHORIZATION, - self.bucket.credentials.secret_key.clone().unwrap_or("".to_string()), + self.bucket.credentials.secret_key.clone().unwrap_or_else(|| "".to_string()), ) .body( serde_json::json!({