rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
9.58k stars 478 forks source link

rust 1.80.0 build error #380

Open lancethepants opened 3 months ago

lancethepants commented 3 months ago

Describe the bug

When building with rust 1.80.0 I receive this error.

cargo build --release

error[E0282]: type annotations needed for `Box<_>`
  --> /mmc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

To Reproduce Steps to reproduce the behavior:

  1. rust 1.80.0
  2. cargo build -release

Configuration cargo build --release

Environment:

If I do cargo update, then it compiles without issue

sunmy2019 commented 2 months ago

time crate needs a bump from 0.3.34 to 0.3.36.

https://github.com/rust-lang/rust/pull/124736


Already done in the trunk, waiting for the next release.