diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-07-23 18:36:35 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-07-29 08:55:06 -0700 |
commit | e010cbfe9bd26b64be2610b29703f50e50f0b4f8 (patch) | |
tree | 3b6375c4e6aa0295dce5af3367e6bd4d3fb875f4 | |
parent | e45b6241650018b6d86265e163d6af8ddb9a5816 (diff) | |
download | ssh2-rs-e010cbfe9bd26b64be2610b29703f50e50f0b4f8.zip |
fixup doc tests
`cargo test --all` (which only appears safe to run in the CI
environment) doesn't get as far as `cargo test --doc` so I overlooked
these.
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -38,7 +38,7 @@ //! // Connect to the local SSH server //! let tcp = TcpStream::connect("127.0.0.1:22").unwrap(); //! let mut sess = Session::new().unwrap(); -//! sess.handshake(&tcp).unwrap(); +//! sess.handshake(tcp).unwrap(); //! //! // Try to authenticate with the first identity in the agent. //! sess.userauth_agent("username").unwrap(); @@ -56,7 +56,7 @@ //! // Connect to the local SSH server //! let tcp = TcpStream::connect("127.0.0.1:22").unwrap(); //! let mut sess = Session::new().unwrap(); -//! sess.handshake(&tcp).unwrap(); +//! sess.handshake(tcp).unwrap(); //! //! sess.userauth_password("username", "password").unwrap(); //! assert!(sess.authenticated()); @@ -72,7 +72,7 @@ //! // Connect to the local SSH server //! let tcp = TcpStream::connect("127.0.0.1:22").unwrap(); //! let mut sess = Session::new().unwrap(); -//! sess.handshake(&tcp).unwrap(); +//! sess.handshake(tcp).unwrap(); //! sess.userauth_agent("username").unwrap(); //! //! let mut channel = sess.channel_session().unwrap(); @@ -95,7 +95,7 @@ //! // Connect to the local SSH server //! let tcp = TcpStream::connect("127.0.0.1:22").unwrap(); //! let mut sess = Session::new().unwrap(); -//! sess.handshake(&tcp).unwrap(); +//! sess.handshake(tcp).unwrap(); //! sess.userauth_agent("username").unwrap(); //! //! let mut remote_file = sess.scp_send(Path::new("remote"), @@ -114,7 +114,7 @@ //! // Connect to the local SSH server //! let tcp = TcpStream::connect("127.0.0.1:22").unwrap(); //! let mut sess = Session::new().unwrap(); -//! sess.handshake(&tcp).unwrap(); +//! sess.handshake(tcp).unwrap(); //! sess.userauth_agent("username").unwrap(); //! //! let (mut remote_file, stat) = sess.scp_recv(Path::new("remote")).unwrap(); |