diff --git a/Cargo.toml b/Cargo.toml index e05ee56e..1e30b4b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,16 +16,15 @@ version = "0.3.0-beta.2" futures-core = "0.3.1" futures-util = "0.3.1" http = "0.2.0" -hyper = "0.13.0" +hyper = "0.13.1" hyper-tls = { version = "0.4.0", optional = true } ruma-api = "0.12.0" ruma-client-api = "0.5.0" ruma-events = "0.15.1" -ruma-identifiers = "0.14.0" +ruma-identifiers = "0.14.1" serde = { version = "1.0.103", features = ["derive"] } serde_json = "1.0.44" serde_urlencoded = "0.6.1" -tokio = "0.2.4" url = "2.1.0" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 125d41fa..84a95dd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,14 +94,10 @@ use futures_core::{ }; use futures_util::stream; use http::Response as HttpResponse; -use hyper::{ - client::connect::Connection, client::HttpConnector, service::Service, Client as HyperClient, - Uri, -}; +use hyper::{client::HttpConnector, Client as HyperClient, Uri}; #[cfg(feature = "hyper-tls")] use hyper_tls::HttpsConnector; use ruma_api::{Endpoint, Outgoing}; -use tokio::io::{AsyncRead, AsyncWrite}; use url::Url; use crate::error::InnerError; @@ -176,10 +172,7 @@ impl HttpsClient { impl Client where - C: Service + Clone + Send + Sync + 'static, - C::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static, - C::Future: Send + Unpin + 'static, - C::Error: Into>, + C: hyper::client::connect::Connect, { /// Creates a new client using the given `hyper::Client`. ///