cm0002@lemmy.world to Programmer Humor@programming.dev · 12 hours agoWhat's stopping you from writing your Rust like this?lemmy.mlexternal-linkmessage-square41fedilinkarrow-up1293arrow-down15
arrow-up1288arrow-down1external-linkWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 12 hours agomessage-square41fedilink
minus-squareDave.@aussie.zonelinkfedilinkarrow-up55·edit-210 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-up35·8 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-squareirelephant 🍭@lemm.eelinkfedilinkEnglisharrow-up5·7 hours agoCrap, thats what I was thinking.
minus-squareverstra@programming.devlinkfedilinkarrow-up2·4 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
Crap, thats what I was thinking.
It could be run after git checkout and then rustfmt before commit.
Slow down satan