rinja-rs / rinja

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.
https://rinja.readthedocs.io
Apache License 2.0
28 stars 4 forks source link

Don't capture `std::fmt::Error` in `rinja::Error` #17

Closed Kijewski closed 2 weeks ago

Kijewski commented 2 weeks ago

std::fmt::Error does not know why it failed, only that it failed, as it has a single value. This PR removes the captured value, to make the code a bit more dense.

GuillaumeGomez commented 2 weeks ago

I love such simplifications. :)