summaryrefslogtreecommitdiff
path: root/src/sftp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sftp.rs')
-rw-r--r--src/sftp.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sftp.rs b/src/sftp.rs
index 7ab9205..4458805 100644
--- a/src/sftp.rs
+++ b/src/sftp.rs
@@ -359,8 +359,7 @@ impl Sftp {
Error::from_errno(code as c_int)
}
- /// Peel off the last error to happen on this Session.
- pub fn last_session_error(&self) -> Option<Error> {
+ fn last_session_error(&self) -> Option<Error> {
Error::last_error_raw(self._sess.raw)
}