You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
it might be more useful to have a bit of context and see exactly what is getting replaced. A diff-view (with character-precision highlighting, not just lines) should work nicely.
This could also be an optional CLI flag, though it might be better to just keep rustfix as simple (and non-configurable) as possible for now.
This might be as easy as adjusting the "apply replacement" function to not always save the output and run print_diff over a slice of max(0, start.line - context)...min(file.lines().count(), end.line + context.
The text was updated successfully, but these errors were encountered:
While it's nice to read something like
it might be more useful to have a bit of context and see exactly what is getting replaced. A diff-view (with character-precision highlighting, not just lines) should work nicely.
This could also be an optional CLI flag, though it might be better to just keep rustfix as simple (and non-configurable) as possible for now.
This might be as easy as adjusting the "apply replacement" function to not always save the output and run print_diff over a slice of
max(0, start.line - context)...min(file.lines().count(), end.line + context
.The text was updated successfully, but these errors were encountered: