Skip to content

Commit 9f11352

Browse files
committed
Make SessionBuilder::control_socket available only on unix.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent d4da1f3 commit 9f11352

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ impl SessionBuilder {
127127
/// be created.
128128
///
129129
/// If not set, `./` will be used (the current directory).
130+
#[cfg(not(windows))]
131+
#[cfg_attr(docsrs, doc(cfg(not(windows))))]
130132
pub fn control_directory(&mut self, p: impl AsRef<Path>) -> &mut Self {
131133
self.control_dir = Some(p.as_ref().to_path_buf());
132134
self

src/changelog.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::*;
66
/// ## Changed
77
/// - Make [`Session::check`] available only on unix.
88
/// - Make [`Socket::UnixSocket`] available only on unix.
9+
/// - Make [`SessionBuilder::control_socket`] available only on unix.
910
pub mod unreleased {}
1011

1112
/// ## Fixed

0 commit comments

Comments
 (0)