Closed vlovich closed 11 months ago
Oh maybe this is implicit by way of https://github.com/rust-lang/rustfmt/issues/8? Not sure if that's about formatting the macro code or the call site.
Thanks for raising this, this does appear to be an issue with rustfmt which we unfortunately do not have control over.
https://github.com/proptest-rs/proptest/pull/316 will help with that
As mentioned, this is the expected rustfmt behavior with declarative macros and not specific to proptest. I'm going to close this as there is no action for us to take
For the time being you could consider copying your proptest block into a new Rust file and formatting with https://github.com/andrewbaxter/genemichaels which handles macros. Granted it took 9 months to support stable let-else
formatting, so macro formatting is probably still a few years out.
Hi,
I noticed a strange issue where nothing within
proptest! {}
is formatted bycargo fmt
.