From ba39e2f53b5f1b6967c646a97eb446e0ca09473d Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 5 Nov 2019 11:55:59 -0800 Subject: [PATCH] more example fixes --- tokio-postgres/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs index c2467a78..df531af0 100644 --- a/tokio-postgres/src/lib.rs +++ b/tokio-postgres/src/lib.rs @@ -3,14 +3,14 @@ //! # Example //! //! ```no_run -//! use tokio_postgres::{NoTls, Error, Row}; +//! use tokio_postgres::{NoTls, Error}; //! //! # #[cfg(not(feature = "runtime"))] fn main() {} //! # #[cfg(feature = "runtime")] //! #[tokio::main] // By default, tokio_postgres uses the tokio crate as its runtime. //! async fn main() -> Result<(), Error> { //! // Connect to the database. -//! let (mut client, connection) = +//! let (client, connection) = //! tokio_postgres::connect("host=localhost user=postgres", NoTls).await?; //! //! // The connection object performs the actual communication with the database,