From 1261696ba23117d94c76f0bcf1a8b2d2393d784c Mon Sep 17 00:00:00 2001 From: Geometrically Date: Tue, 29 Dec 2020 22:11:23 -0700 Subject: [PATCH] Make it compile --- src/file_hosting/s3_host.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file_hosting/s3_host.rs b/src/file_hosting/s3_host.rs index fb237459a..59e01e47e 100644 --- a/src/file_hosting/s3_host.rs +++ b/src/file_hosting/s3_host.rs @@ -53,14 +53,14 @@ impl FileHost for S3Host { if provider == "do" { reqwest::Client::new() - .delete(format!( + .delete(&*format!( "https://api.digitalocean.com/v2/cdn/endpoints/{}/cache", self.bucket.name )) .header(reqwest::header::CONTENT_TYPE, "application/json") .header( reqwest::header::AUTHORIZATION, - &self.bucket.credentials.secret_key, + &self.bucket.credentials.secret_key.unwrap_or_else(""), ) .body( serde_json::json!({