Skip to content

v0.6.2

Choose a tag to compare

@RAprogramm RAprogramm released this 20 Sep 11:51
· 436 commits to main since this release

Added

  • Resolve #[error("...")] format arguments when generating Display
    implementations, supporting named bindings, explicit indices and implicit
    placeholders via a shared argument environment.

Changed

  • Detect additional format arguments, implicit placeholders and non-Display
    formatters in render_template, delegating complex cases to a single
    write! invocation while retaining the lightweight f.write_str path for
    literal-only templates. The helper that assembles format arguments now keeps
    positional/implicit bindings ahead of named ones to satisfy the formatting
    macro contract.

Tests

  • Cover named format argument expressions, implicit placeholder ordering and
    enum variants using format arguments.