cm0002@lemmy.world to Programmer Humor@programming.dev · 15 hours agoWhat's stopping you from writing your Rust like this?lemmy.mlexternal-linkmessage-square45fedilinkarrow-up1303arrow-down15cross-posted to: [email protected]
arrow-up1298arrow-down1external-linkWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 15 hours agomessage-square45fedilinkcross-posted to: [email protected]
minus-squareDave.linkfedilinkarrow-up58·edit-213 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-up43·10 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·10 hours agoCrap, thats what I was thinking.
minus-squareverstra@programming.devlinkfedilinkarrow-up4·6 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