diff --git a/Cargo.toml b/Cargo.toml index ebe550c5..ea38f146 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "teloxide-core" description = "Core part of the `teloxide` library - telegram bot API client" -version = "0.1.0" +version = "0.1.1" edition = "2018" authors = [ "Temirkhan Myrzamadi <hirrolot@gmail.com>", diff --git a/src/net/request.rs b/src/net/request.rs index 1ab76873..b8726001 100644 --- a/src/net/request.rs +++ b/src/net/request.rs @@ -59,10 +59,9 @@ where tokio::time::sleep(DELAY_ON_SERVER_ERROR).await; } - serde_json::from_str::<TelegramResponse<T>>(dbg!(&response - .text() - .await - .map_err(RequestError::NetworkError)?)) + serde_json::from_str::<TelegramResponse<T>>( + &response.text().await.map_err(RequestError::NetworkError)?, + ) .map_err(RequestError::InvalidJson)? .into() }