Skip to content

Commit f9c50f8

Browse files
committed
Bug fix.
1 parent 93174bc commit f9c50f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sender.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ async fn send_async(s: String) -> String {
1111
let res = client
1212
.post(&format!(
1313
"{}/aliens/send?apiKey={}",
14-
env::var("ICFPC_API_HOST").unwrap_or("https://icfpc2020-api.testkontur.ru"),
14+
env::var("ICFPC_API_HOST").unwrap_or(
15+
"https://icfpc2020-api.testkontur.ru".to_owned()),
1516
env::var("ICFPC_API_KEY").expect("ICFPC_API_KEY must be specified")
1617
))
1718
.body(s.clone())

0 commit comments

Comments
 (0)