h3poteto / megalodon-rs

Fediverse API client library for Rust
Apache License 2.0
106 stars 24 forks source link

Revert "fix: cleanup warnings" #209

Closed h3poteto closed 4 months ago

h3poteto commented 4 months ago

Reverts h3poteto/megalodon-rs#207

h3poteto commented 4 months ago

I can't build it. I revert this until it is fixed @joshka

   Compiling megalodon v0.13.0 (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/megalodon-rs)
error[E0599]: no method named `and_utc` found for struct `NaiveDateTime` in the current scope
  --> src/pleroma/entities/marker.rs:65:32
   |
65 |             .map(|naive| naive.and_utc())
   |                                ^^^^^^^ method not found in `NaiveDateTime`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `megalodon` (lib) due to previous error
joshka commented 4 months ago

The cargo toml versions are underspecified (e.g. chrono = "0.4" instead of 0.4.25 - fixed in https://github.com/h3poteto/megalodon-rs/pull/210