lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
2.09k stars 137 forks source link

Use explicitly-named args in `impl_render_with_display` #328

Closed malyn closed 2 years ago

malyn commented 2 years ago

Implicitly-named format args were introduced in 69649421686a16206d55eb31634f2b77f8aa504e as part of the work on #320, but it does not appear that feature will land until Rust 1.58. Explicitly naming the args ensures that the Maud works on non-Nightly builds of Rust.

lambda-fairy commented 2 years ago

Thanks @malyn !

I tweaked the formatting to match that of the std docs. But otherwise LGTM.