Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.44k stars 280 forks source link

Fix deprecations & clippy::all #802

Closed godofdream closed 1 year ago

godofdream commented 1 year ago

fixes chrono, prec_climber and humansize deprecations humansize is extended by the binary attribute (for jinja compatibility) fixes clippy warnings and errors still maintaining MSRV 1.56 uses total_cmp instead of partialOrd implementation of f64

I can't tell if updating the dependencies forces to use a newer MSRV. Edit: tested with rust 1.56.0

Keats commented 1 year ago

Looks like it fails

godofdream commented 1 year ago

I pinned cargo versions for 1.56.0 compatibility and backported total_cmp, as it's a rust 1.62 feature.

godofdream commented 1 year ago

@Keats with this MR the Pipelines should work again (pinned cargo versions)

godofdream commented 1 year ago

by the way #762 is a duplicate