Fixing the doc tests

[?]
Feb 16, 2021, 9:06 PM
2B2UUFXGXMUGYT7KW6PYXSXIRVLXNBUNY6I47ULENHCSLOR4OG5QC

Dependencies

  • [2] ZGJF6NR2 Make test in thrussh/src/lib pass
  • [3] 2WEO7OZL Version updates: getting rid of anyhow + moving to Tokio 1.0
  • [4] 7FRJYUI6 Reboot because of a bad change

Change contents

  • edit in thrussh/src/lib.rs at line 82
    [3.281500]
    [3.281500]
    //! type Error = anyhow::Error;
  • edit in thrussh/src/lib.rs at line 170
    [3.284875]
    [3.284875]
    //! type Error = anyhow::Error;
  • replacement in thrussh/src/lib.rs at line 196
    [3.286060][3.286060:286116]()
    //! let config = thrussh::client::Config::COMPRESSED;
    [3.286060]
    [3.286116]
    //! let config = thrussh::client::Config::default();
  • replacement in thrussh/src/lib.rs at line 204
    [3.286494][3.286494:286613]()
    //! if session.authenticate_future(std::env::var("USER").unwrap(), key.clone_public_key(), agent).await.unwrap().1 {
    [3.286494]
    [3.286613]
    //! if session.authenticate_future(std::env::var("USER").unwrap(), key.clone_public_key(), agent).await.1.unwrap() {
  • replacement in thrussh/src/lib.rs at line 206
    [3.286686][3.286686:286741]()
    //! channel.data(b"Hello, world!").await.unwrap();
    [3.286686]
    [3.286741]
    //! channel.data(&b"Hello, world!"[..]).await.unwrap();
  • replacement in thrussh/src/lib.rs at line 696
    [2.1687][2.1687:1772]()
    ChannelMsg::Data { data: msg_data } => { assert_eq!(*data, *msg_data) },
    [2.1687]
    [2.1772]
    ChannelMsg::Data { data: msg_data } => {
    assert_eq!(*data, *msg_data)
    }