From e90388445110094524e94bc88f01dead2700d926 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Mon, 2 Sep 2019 17:39:04 -0700 Subject: [PATCH] Update dependencies --- Cargo.toml | 4 ++-- src/postgres/connection.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b5cc6dff..204b19e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,12 +28,12 @@ hex = { version = "0.3.2", default-features = false } log = "0.4.8" md-5 = "0.8.0" memchr = "2.2.1" -tokio = { version = "=0.2.0-alpha.2", default-features = false, features = [ "tcp" ] } +tokio = { version = "=0.2.0-alpha.4", default-features = false, features = [ "tcp" ] } url = "2.1.0" [dev-dependencies] matches = "0.1.8" -tokio = { version = "=0.2.0-alpha.2", default-features = false, features = [ "rt-full" ] } +tokio = { version = "=0.2.0-alpha.4", default-features = false, features = [ "rt-full" ] } [profile.release] lto = true diff --git a/src/postgres/connection.rs b/src/postgres/connection.rs index 4d59cb8a..035c24df 100644 --- a/src/postgres/connection.rs +++ b/src/postgres/connection.rs @@ -40,7 +40,8 @@ pub struct PostgresRawConnection { impl PostgresRawConnection { async fn establish(url: &str) -> crate::Result { let url = Url::parse(url)?; - let stream = TcpStream::connect(&url.resolve(5432)).await?; + let addr = url.resolve(5432); + let stream = TcpStream::connect(&addr).await?; let mut conn = Self { stream: BufStream::new(stream),