Fix doc example

Looks like recent cargo nightlies started passing features to doc tests
This commit is contained in:
Steven Fackler 2015-12-20 21:34:55 -07:00
parent 45b0d8de7e
commit 6bada57e0f

View File

@ -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,