From 9077c22304a320e61eed0cf38c624c18c1f589b5 Mon Sep 17 00:00:00 2001 From: iceiix <43691553+iceiix@users.noreply.github.com> Date: Sun, 5 Jan 2020 10:38:21 -0800 Subject: [PATCH] Update to reqwest 0.10.0. Closes #259 * Bump reqwest from 0.9.22 to 0.10.0 * Use blocking reqwest API instead of futures, for now --- protocol/src/protocol/mojang.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/src/protocol/mojang.rs b/protocol/src/protocol/mojang.rs index 8a11e75..165fa38 100644 --- a/protocol/src/protocol/mojang.rs +++ b/protocol/src/protocol/mojang.rs @@ -42,7 +42,7 @@ impl Profile { }}); let req = serde_json::to_string(&req_msg)?; - let client = reqwest::Client::new(); + let client = reqwest::blocking::Client::new(); let res = client.post(LOGIN_URL) .header(reqwest::header::CONTENT_TYPE, "application/json") .body(req) @@ -70,7 +70,7 @@ impl Profile { }); let req = serde_json::to_string(&req_msg)?; - let client = reqwest::Client::new(); + let client = reqwest::blocking::Client::new(); let res = client.post(VALIDATE_URL) .header(reqwest::header::CONTENT_TYPE, "application/json") .body(req) @@ -129,7 +129,7 @@ impl Profile { }); let join = serde_json::to_string(&join_msg).unwrap(); - let client = reqwest::Client::new(); + let client = reqwest::blocking::Client::new(); let res = client.post(JOIN_URL) .header(reqwest::header::CONTENT_TYPE, "application/json") .body(join)