Skip to content

Commit 76e2c23

Browse files
authored
Fix Session::control_socket for future support of windows (#52)
Mark `Session::control_socket` as `not(windows)` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 4543824 commit 76e2c23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ impl Session {
294294
}
295295

296296
/// Get the SSH connection's control socket path.
297+
#[cfg(not(windows))]
298+
#[cfg_attr(docsrs, doc(cfg(not(windows))))]
297299
pub fn control_socket(&self) -> &Path {
298300
delegate!(&self.0, imp, { imp.ctl() })
299301
}

0 commit comments

Comments
 (0)