rust-lang / rustfmt

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

Remove `println!` in `rewrite_static()` #6214

Closed Creative0708 closed 6 days ago

Creative0708 commented 6 days ago

There's an extraneous println!() in rewrite_static in items.rs:

https://github.com/rust-lang/rustfmt/blob/e4944185ae09c99f59b460e358909f329010ea9c/src/items.rs#L1992-L2000

This causes rustfmt to add "rewriting static" to the top of every file that triggers rewrite_static() when formatting:

image

This PR removes the println!(). Nothing fancy, I assume this was a mistake.

Creative0708 commented 6 days ago

Oops, sorry. Didn't see https://github.com/rust-lang/rustfmt/issues/6210 for some reason.