Skip to content
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

Compile error for time crate #76

Open
Kiwifuit opened this issue Aug 24, 2024 · 0 comments
Open

Compile error for time crate #76

Kiwifuit opened this issue Aug 24, 2024 · 0 comments

Comments

@Kiwifuit
Copy link

I just added leptonic v0.5.0 with cargo add leptonic, and doing cargo leptos watch gives me this error:

error[E0282]: type annotations needed for `Box<_>`
  --> /home/misery/.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
   |              ++++++++

Which seems to originate from the time crate, one of leptonic's dependencies. How do I resolve this?

ydirson added a commit to ydirson/leptonic that referenced this issue Sep 3, 2024
This contraint pins a version of time that gets broken by at least
with Rust 1.78 and later.  8897b33
does not explain why it was introduced, maybe because of a subsequent
release.  Just removing the pin will add the fewer constraints and
thus break less various settings.
ydirson added a commit to ydirson/leptonic that referenced this issue Sep 3, 2024
This constraint pins a version of time that gets broken by at least
with Rust 1.78 and later.  8897b33
does not explain why it was introduced, maybe because of a subsequent
release.  Just removing the pin will add the fewer constraints and
thus break less various settings.
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

No branches or pull requests

1 participant