#Is there a way to insert spaces before and after a param list in rustfmt?

2 messages · Page 1 of 1 (latest)

eternal jackal
#

It's common in the C++ world to write:
self.foo( bar )

By default rustfmt yields:
self.foo(bar)

White space is a boundless resource and improves readability.

Is there a way to tell rustfmt to insert these spaces?

leaden quarry
#

I'm not aware of such a setting, and that style isn't common in rust code I've seen either. You can see all rustfmt config options here if you want, though I don't think such a setting exists https://rust-lang.github.io/rustfmt/