From 6bada57e0f7109e9ddf8afa2571d38a130fdc879 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 20 Dec 2015 21:34:55 -0700 Subject: [PATCH] Fix doc example Looks like recent cargo nightlies started passing features to doc tests --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4f832b6a..2dc38660 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -875,10 +875,11 @@ impl Connection { /// /// ```rust,no_run /// use postgres::{Connection, UserInfo, ConnectParams, SslMode, ConnectTarget}; + /// # use std::path::PathBuf; /// /// # #[cfg(feature = "unix_socket")] /// # fn f() { - /// # let some_crazy_path = Path::new(""); + /// # let some_crazy_path = PathBuf::new(); /// let params = ConnectParams { /// target: ConnectTarget::Unix(some_crazy_path), /// port: None,