We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93174bc commit f9c50f8Copy full SHA for f9c50f8
src/sender.rs
@@ -11,7 +11,8 @@ async fn send_async(s: String) -> String {
11
let res = client
12
.post(&format!(
13
"{}/aliens/send?apiKey={}",
14
- env::var("ICFPC_API_HOST").unwrap_or("https://icfpc2020-api.testkontur.ru"),
+ env::var("ICFPC_API_HOST").unwrap_or(
15
+ "https://icfpc2020-api.testkontur.ru".to_owned()),
16
env::var("ICFPC_API_KEY").expect("ICFPC_API_KEY must be specified")
17
))
18
.body(s.clone())
0 commit comments