cm0002@lemmy.worldcake to Programmer Humor@programming.dev · 4 months agoWhat's stopping you from writing your Rust like this?lemmy.mlexternal-linkmessage-square19fedilinkarrow-up17arrow-down11cross-posted to: [email protected]
arrow-up16arrow-down1external-linkWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.worldcake to Programmer Humor@programming.dev · 4 months agomessage-square19fedilinkcross-posted to: [email protected]
minus-squareDave.@aussie.zonelinkfedilinkarrow-up2·edit-24 months 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-up1·4 months 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 [he/him]🍭@lemm.eelinkfedilinkEnglisharrow-up1·4 months agoCrap, thats what I was thinking.
minus-squareverstra@programming.devlinkfedilinkarrow-up1·4 months 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.