rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.84k stars 352 forks source link

Update to use RFC2795 formatting #392

Closed ciphergoth closed 4 months ago

simonsan commented 4 months ago

Good idea, just to understand, did you look through the others to fix it as well and there haven't been any or just came by this one? If so, would you be able to go through the others and fix them as well? 😬 Would be lovely! 😊

ciphergoth commented 4 months ago

I just came by this one. Since it's about the use of the format macro it seems especially relevant!

ciphergoth commented 4 months ago

I've pushed a new branch that fixes it everywhere it's trivial.

My editor insists on fixing some stray whitespace at the same time. It's a lot of work for me to fix that.

simonsan commented 4 months ago

I've pushed a new branch that fixes it everywhere it's trivial.

My editor insists on fixing some stray whitespace at the same time. It's a lot of work for me to fix that.

Yeah, don't mind. We use dprint, a rust tool. You can just run dprint fmt in the root and be fine :-)

simonsan commented 4 months ago

Thanks a lot! 🚀