cm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agoWhat's stopping you from writing your Rust like this?lemmy.mlimagemessage-square54fedilinkarrow-up1336arrow-down16
arrow-up1330arrow-down1imageWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agomessage-square54fedilink
minus-squareDave.@aussie.zonelinkfedilinkarrow-up60·edit-216 hours agorustfmt is stopping me from writing code like this, and I have never been more happier using it after viewing this.
minus-squarekilleronthecorner@lemmy.worldlinkfedilinkEnglisharrow-up47·14 hours 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-squarenintendiator@feddit.cllinkfedilinkEnglisharrow-up1·3 hours agoPlease do, I’m waiting for it to get ported to other languages.
minus-squareirelephant 🍭@lemm.eelinkfedilinkEnglisharrow-up6·13 hours agoCrap, thats what I was thinking.
minus-squareverstra@programming.devlinkfedilinkarrow-up6·10 hours agoIt could be run after git checkout and then rustfmt before commit.
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
Please do, I’m waiting for it to get ported to other languages.
Crap, thats what I was thinking.
It could be run after git checkout and then rustfmt before commit.
Slow down satan