plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

[FIX] fix datetime addition #592

Closed holg closed 5 months ago

holg commented 5 months ago

The chrono::Duration object doesn't have += operation defined. So instead of using +=, the addition should be done explicitly. It worked before, but this made it not being compiled, so i fixed it.

AaronErhardt commented 5 months ago

It seems like support for += was added in chrono 0.4.34, but plotters only lists v0.4.20 as baseline requirement. So instead of undoing the recent commits that fixed some clippy lints, I suggest to update the baseline for chrono to 0.4.34.

holg commented 5 months ago

Instead of doing this fix the update the baseline for chrono to 0.4.34.