From 22c481c3b920edba92d314aea6f89ccb4d7e99bb Mon Sep 17 00:00:00 2001 From: Evgeniy Leko Date: Mon, 30 Oct 2023 09:27:17 +0100 Subject: [PATCH] [tests] fix doc tests -- use env var everywhere --- src/types/column/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/column/mod.rs b/src/types/column/mod.rs index c5060f7..7899a18 100644 --- a/src/types/column/mod.rs +++ b/src/types/column/mod.rs @@ -147,7 +147,7 @@ impl Column { /// # use futures_util::stream::StreamExt; /// # let mut rt = tokio::runtime::Runtime::new().unwrap(); /// # let ret: Result<()> = rt.block_on(async { - /// # let database_url = "tcp://localhost:9000"; + /// # let database_url = env::var("DATABASE_URL").unwrap_or("tcp://localhost:9000".into()); /// # let pool = Pool::new(database_url); /// # let mut client = pool.get_handle().await?; /// let mut stream = client