honzasp / makiko

Asynchronous SSH client library in pure Rust
https://honzasp.github.io/makiko/
The Unlicense
39 stars 3 forks source link

Cannot build on rust 1.70.0 #2

Closed yorkz1994 closed 1 year ago

yorkz1994 commented 1 year ago
  1. Upgrade rust to latest release 1.70.0
  2. Clone makiko or use it as dependency.
  3. Cargo build, errors:
    
    error: `box_syntax` has been removed
    --> /home/york/.cargo/registry/src/index.crates.io-6f17d22bba15001f/guard-0.5.1/src/lib.rs:426:20
    |
    426 |         let foo = (box 42, [1, 2, 3]);
    |                    ^^^^^^
    |
    help: use `Box::new()` instead
    |
    426 |         let foo = (Box::new(42), [1, 2, 3]);
    |                    ~~~~~~~~~~~~
honzasp commented 1 year ago

Thank you for reporting this! I fixed this by replacing the guard crate with native let else statements and I will release a new version today.

honzasp commented 1 year ago

Fixed in version 0.2.2

yorkz1994 commented 1 year ago

Impressive! Thank you for the quick fix.