Alex-PK / chrono-locale

Support localization for dates in chrono
Other
3 stars 6 forks source link

Broken with latest chrono #5

Open ctrlcctrlv opened 1 year ago

ctrlcctrlv commented 1 year ago
   Compiling chrono_locale v0.1.1
error[E0004]: non-exhaustive patterns: `chrono::format::Fixed::TimezoneOffsetDoubleColon` and `chrono::format::Fixed::TimezoneOffsetTripleColon` not covered
   --> /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono_locale-0.1.1/src/lib.rs:253:21
    |
253 |                 let ret = match spec {
    |                                 ^^^^ patterns `chrono::format::Fixed::TimezoneOffsetDoubleColon` and `chrono::format::Fixed::TimezoneOffsetTripleColon` not covered
    |
note: `chrono::format::Fixed` defined here
   --> /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono-0.4.23/src/format/mod.rs:234:5
    |
184 | pub enum Fixed {
    | --------------
...
234 |     TimezoneOffsetDoubleColon,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ not covered
...
240 |     TimezoneOffsetTripleColon,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ not covered
    = note: the matched value is of type `chrono::format::Fixed`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
    |
322 ~                     }
323 ~                     chrono::format::Fixed::TimezoneOffsetDoubleColon | chrono::format::Fixed::TimezoneOffsetTripleColon => todo!()
    |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `chrono_locale` due to previous error