Fix doc example
Looks like recent cargo nightlies started passing features to doc tests
This commit is contained in:
parent
45b0d8de7e
commit
6bada57e0f
@ -875,10 +875,11 @@ impl Connection {
|
|||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// use postgres::{Connection, UserInfo, ConnectParams, SslMode, ConnectTarget};
|
/// use postgres::{Connection, UserInfo, ConnectParams, SslMode, ConnectTarget};
|
||||||
|
/// # use std::path::PathBuf;
|
||||||
///
|
///
|
||||||
/// # #[cfg(feature = "unix_socket")]
|
/// # #[cfg(feature = "unix_socket")]
|
||||||
/// # fn f() {
|
/// # fn f() {
|
||||||
/// # let some_crazy_path = Path::new("");
|
/// # let some_crazy_path = PathBuf::new();
|
||||||
/// let params = ConnectParams {
|
/// let params = ConnectParams {
|
||||||
/// target: ConnectTarget::Unix(some_crazy_path),
|
/// target: ConnectTarget::Unix(some_crazy_path),
|
||||||
/// port: None,
|
/// port: None,
|
||||||
|
Loading…
Reference in New Issue
Block a user