rust-lang / rustfmt

Format Rust code
https://rust-lang.github.io/rustfmt/
Apache License 2.0
6.05k stars 888 forks source link

Preallocate missmatches in `JsonEmitter::add_misformatted_file` #6336

Closed Rawk closed 2 months ago

Rawk commented 2 months ago

The mismatches length is known to be equal to diff.len().