This allows the usage: src/format-all.sh --write-mode=diff
This is mostly useful when updating to a new version of rustfmt with different behavior.