rust-lang/rustfix

Special case insertions and removals

Closed this issue · 0 comments

replacing "" with "foo" should not display the original text and the new text like it's doing right now. instead it should point at the char where the text will be inserted and say something like Suggestion - Insert "foo" at ...

The opposite, removals are even easier, they can simply skip the with part and just display the original snippet with the text that should be removed highlighted as it's already happening