rustfmt
rustfmt copied to clipboard
Fixing the potential deletion of comments
Adding a check to make sure comments are not being removed! by adding a simple check to see what it is being rewritten to.
This was done by simply adding a check if a previously existing comment has been erased after the rewrite.
Attempting to Fix https://github.com/rust-lang/rustfmt/issues/6044