-
Notifications
You must be signed in to change notification settings - Fork 14
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
Compilation error[E0277]: the trait bound Tz: Copy
is not satisfied
#29
Comments
Just ran into this myself. It would be awesome if this could be fixed upstream. @stevedonovan could you take a look at this and eventually publish a new release :)? |
I fixed the problem in 8e07035 |
You're a lifesaver mate. This is the only library that can do what I want to do (human input parsing for a discord bot to set reminders) other than going overkill and using some LLM or other such BS. I will probably tell cargo to use your PR until there is an official release. |
You're welcome :). We definitely need this in a release though^^ This currently prevents dependant libraries from upgrading chrono. One cannot release crates that point to git repositories, all dependencies need to be published on crates.io 😓 |
Accepted all updates, - except for `chrono`, which remains at `0.4.34` instead of being updated to `0.4.37` because the `chrono-english` dependency is incompatible: stevedonovan/chrono-english#29 - It would be possible to patch the dependency in `Cargo.toml`, but then (I believe) we wouldn't be able to publish the git-branchless crate to crates.io: https://stackoverflow.com/questions/69235287/can-i-publish-a-crate-that-uses-a-patch#comment122393890_69235309, - and a large number of users install directly from `cargo`/crates.io.
Accepted all updates, - except for `chrono`, which remains at `0.4.34` instead of being updated to `0.4.37` because the `chrono-english` dependency is incompatible: stevedonovan/chrono-english#29 - It would be possible to patch the dependency in `Cargo.toml`, but then (I believe) we wouldn't be able to publish the git-branchless crate to crates.io: https://stackoverflow.com/questions/69235287/can-i-publish-a-crate-that-uses-a-patch#comment122393890_69235309, - and a large number of users install directly from `cargo`/crates.io.
Accepted all updates, - except for `chrono`, which remains at `0.4.34` instead of being updated to `0.4.37` because the `chrono-english` dependency is incompatible: stevedonovan/chrono-english#29 - It would be possible to patch the dependency in `Cargo.toml`, but then (I believe) we wouldn't be able to publish the git-branchless crate to crates.io: https://stackoverflow.com/questions/69235287/can-i-publish-a-crate-that-uses-a-patch#comment122393890_69235309, - and a large number of users install directly from `cargo`/crates.io.
I fixed this by switching to the drop-in replacement https://github.com/conradludgate/interim It seems well-maintained, properly tested and has the exact same API surface. |
I get the following error trying to compile the crate:
I believe this is caused by one of the latest chrono versions, that included changes and deprecations.
I am using
chrono 0.4.37
andchrono-tz 0.8.6
.The text was updated successfully, but these errors were encountered: