From b2f1d514510c005d4ba5cf14337a29baa8a68941 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 3 Jan 2019 21:14:16 -0800 Subject: [PATCH] cleanup --- tokio-postgres/src/proto/handshake.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tokio-postgres/src/proto/handshake.rs b/tokio-postgres/src/proto/handshake.rs index b3b1e47b..6b27f0ea 100644 --- a/tokio-postgres/src/proto/handshake.rs +++ b/tokio-postgres/src/proto/handshake.rs @@ -92,8 +92,7 @@ where } let mut buf = vec![]; - frontend::startup_message(params.iter().map(|e| (e.0, e.1)), &mut buf) - .map_err(Error::encode)?; + frontend::startup_message(params, &mut buf).map_err(Error::encode)?; let stream = Framed::new(stream, PostgresCodec);