zurawiki / gptcommit

A git prepare-commit-msg hook for authoring commit messages with GPT-3.
MIT License
2.33k stars 77 forks source link

Fix compiler error when building with rustc 1.80 #285

Closed sandydoo closed 3 weeks ago

sandydoo commented 2 months ago

Just a cargo update. This bumps time to fix a compiler error when building with newer versions of rust (1.80+)

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

For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error

Fixes #290.

sandydoo commented 4 weeks ago

@zurawiki, any chance of merging this and cutting a new release?

zurawiki commented 3 weeks ago

Thanks for pointing this out, will release a new version shortly

tshu-w commented 3 weeks ago

Is the github-actions bot of zurawiki/homebrew-brews failed? The version is still 0.5.14.

zurawiki commented 3 weeks ago

Is the github-actions bot of zurawiki/homebrew-brews failed? The version is still 0.5.14.

0.5.17 should be fixed now