summaryrefslogtreecommitdiffstats
path: root/fmt.sh
blob: d7c08e5e8435704dbf10aefcf7974b24dc64f463 (plain)
1
2
3
4
5
6
7
8
9
10
11
# I consider the changes of cargo fmt as suggestions.
# So my practice is to pick them, or not, one by one, in meld.
# This script builds a formatted version of the source then
# opens the two folders in meld (destination being my original
# code)
rm -rf src-mine
cp -r src src-mine
cargo +nightly fmt
mv src src-fmt
mv src-mine src
meld src-fmt src