From f9c50f892cb01e5afc48364ab392d77db6eeb1fc Mon Sep 17 00:00:00 2001 From: imos <173752+imos@users.noreply.github.com> Date: Sun, 19 Jul 2020 18:49:20 +0900 Subject: [PATCH] Bug fix. --- src/sender.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sender.rs b/src/sender.rs index 5ec4f36..c3815e0 100644 --- a/src/sender.rs +++ b/src/sender.rs @@ -11,7 +11,8 @@ async fn send_async(s: String) -> String { let res = client .post(&format!( "{}/aliens/send?apiKey={}", - env::var("ICFPC_API_HOST").unwrap_or("https://icfpc2020-api.testkontur.ru"), + env::var("ICFPC_API_HOST").unwrap_or( + "https://icfpc2020-api.testkontur.ru".to_owned()), env::var("ICFPC_API_KEY").expect("ICFPC_API_KEY must be specified") )) .body(s.clone())