fix missing '#[cfg(unix)]'

This commit is contained in:
坚坚冰
2019-01-31 12:30:45 +08:00
parent 3aac7450de
commit 0f8943952d

View File

@@ -236,6 +236,7 @@ impl Config {
/// Adds a Unix socket host to the configuration.
///
/// Unlike `host`, this method allows non-UTF8 paths.
#[cfg(unix)]
pub fn host_path<T>(&mut self, host: T) -> &mut Config
where
T: AsRef<Path>,