From 52a54e91c87cb9337e40e97d15d87886fc2da3e3 Mon Sep 17 00:00:00 2001 From: Waffle Date: Fri, 11 Oct 2019 15:32:31 +0300 Subject: [PATCH] Remove uses of deprecated `reqwest::r#async` --- src/bot/mod.rs | 2 +- src/requests/form_builder.rs | 4 ++-- src/requests/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/mod.rs b/src/bot/mod.rs index eacf2e3a..4f370663 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -1,4 +1,4 @@ -use reqwest::r#async::Client; +use reqwest::Client; use crate::requests::RequestContext; diff --git a/src/requests/form_builder.rs b/src/requests/form_builder.rs index d5ee4169..4675a692 100644 --- a/src/requests/form_builder.rs +++ b/src/requests/form_builder.rs @@ -1,13 +1,13 @@ use std::path::PathBuf; -use reqwest::r#async::multipart::Form; +use reqwest::multipart::Form; use crate::{ requests::{utils, ChatId}, types::{InputMedia, ParseMode}, }; -/// This is a convenient struct that builds `reqwest::r#async::multipart::Form` +/// This is a convenient struct that builds `reqwest::multipart::Form` /// from scratch. pub struct FormBuilder { form: Form, diff --git a/src/requests/mod.rs b/src/requests/mod.rs index 2bc0360f..17d50e4c 100644 --- a/src/requests/mod.rs +++ b/src/requests/mod.rs @@ -1,5 +1,5 @@ use async_trait::async_trait; -use reqwest::r#async::Client; +use reqwest::Client; use serde::de::DeserializeOwned; use crate::RequestError;