Skip to content

Commit 994fdff

Browse files
committed
Make Session::check available only on unix
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent ff34127 commit 994fdff

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
@@ -289,6 +289,8 @@ impl Session {
289289
}
290290

291291
/// Check the status of the underlying SSH connection.
292+
#[cfg(not(windows))]
293+
#[cfg_attr(docsrs, doc(cfg(not(windows))))]
292294
pub async fn check(&self) -> Result<(), Error> {
293295
delegate!(&self.0, imp, { imp.check().await })
294296
}

0 commit comments

Comments
 (0)