Fix clippy

This commit is contained in:
Geometrically 2020-12-31 10:09:57 -07:00
parent 6440220640
commit 0a6fa65075
No known key found for this signature in database
GPG Key ID: 90C056FDC8FC9FF0

View File

@ -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!({