github.com
rustfmt fails on an empty file; --check's diff doesn't result in properly formatted file · Issue #5364 · rust-lang/rustfmt
Generate an empty file, and run rustfmt --check on it: $ touch zero_lines.rs $ rustfmt --check zero_lines.rs Diff in /Users/roy/code/random/test-crate/src/zero_lines.rs at line 1: + + $ So, this is...