@[email protected] to Programmer [email protected] • 2 days agoWhat's stopping you from writing your Rust like this?lemmy.mlimagemessage-square54fedilinkarrow-up1382arrow-down18cross-posted to: [email protected]
arrow-up1374arrow-down1imageWhat's stopping you from writing your Rust like this?lemmy.ml@[email protected] to Programmer [email protected] • 2 days agomessage-square54fedilinkcross-posted to: [email protected]
minus-squareDave.linkfedilink64•edit-22 days agorustfmt is stopping me from writing code like this, and I have never been more happier using it after viewing this.
minus-square@[email protected]linkfedilinkEnglish56•2 days agoI’m going to write a tool that automatically adds the braces and semicolons to the column as you edit the code. I will call it rustfml
minus-square@[email protected]linkfedilink8•2 days agoIt could be run after git checkout and then rustfmt before commit.
minus-square@[email protected]linkfedilinkEnglish1•2 days agoPlease do, I’m waiting for it to get ported to other languages.
rustfmt
is stopping me from writing code like this, and I have never been more happier using it after viewing this.
I’m going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.
I will call it
rustfml
Crap, thats what I was thinking.
It could be run after git checkout and then rustfmt before commit.
Slow down satan
Please do, I’m waiting for it to get ported to other languages.