You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
During the build with cargo build --release, this issue shows up:
error[E0282]: type annotations needed for`Box<_>`
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/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
| ++++++++
Compiling synstructure v0.12.6
Compiling http-body v0.4.6
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Problem:
During the build with
cargo build --release
, this issue shows up:This is a known issue described here — time-rs/time#681
Suggested solution
As suggested here, I added
time = "0.3.36"
to theCargo.toml
and my build succeeded.The text was updated successfully, but these errors were encountered: