Skip to content

Fix compliation by updating rand and env_logger crates #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2025

Conversation

sbernauer
Copy link
Contributor

Currently the code does not compile (see error message below)
So I ran cargo update to fix it. While at it, I updated all dependencies, ran cargo fmt (ok, my editor did) and fixed the clippy warnings.

   Compiling time v0.3.30
error[E0282]: type annotations needed for `Box<_>`
  --> /home/sbernauer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-0.3.30/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`

Copy link

@ador ador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks, now the build works 🎉

@martinamps martinamps merged commit 51dfe37 into BattlesnakeOfficial:main Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants