fmt: check for extra newline at end of file

`anything_changed` checks if `source_index` == `source.len`
Fixes #2074
5942797000Shritesh Bhattarai committed on 3/26/2019, 5:26:00 PM· committed by Andrew Kelleyparent51be449
2 files changedLine totals unavailable