Prettier Plugin Rust Versions Save

Prettier Rust is an opinionated code formatter that autocorrects bad syntax.

0.1.9

1 year ago
  • feat: format cfg_if! macros
  • feat: format @ character in macro_rules
  • fix: format <number>. and <number>e0 to float instead of int (#14, #16)
  • fix: always end files with a newline (#21)
  • fix: avoid removing optional semi in rare rust compiler bug (#22)

0.1.8

1 year ago
  • feat(extension): display message when formatting fails due to non-parser errors.
  • feat: move ..spread, .. to the end of patterns and reassignments (#7)
  • fix: remove comma after .. in patterns and reassignments (#7)
  • fix: support malformed macro_rules! ([email protected])
  • fix: unprinted comment errors in failed macros (#8)

0.1.7

1 year ago
  • feat: move ..spread to the end of struct literals (#6)
  • fix: remove comma after ..spread in struct literals (#6)

0.1.6

1 year ago
  • fix: parenthesize >1 length dyn/impl types nested in unary types. (#4)
  • fix: remove comma after match cases with block-like macro expressions. (#4)

0.1.5

1 year ago
  • feat: wrap non-block closure expressions with a block when a -> ReturnType is defined
  • fix: add extension to filepath in ESM imports (#2)
  • fix: add missing whitespace in let_else feature
  • fix(extension): disable config caching

0.1.1

1 year ago

Initial release