We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c313fb1 commit 20aecb3Copy full SHA for 20aecb3
src/comment.rs
@@ -826,7 +826,7 @@ pub fn recover_comment_removed(
826
shape: Shape,
827
) -> Option<String> {
828
let snippet = context.snippet(span);
829
- if changed_comment_content(&snippet, &new) {
+ if snippet != new && changed_comment_content(&snippet, &new) {
830
// We missed some comments
831
// Keep previous formatting if it satisfies the constrains
832
wrap_str(snippet, context.config.max_width(), shape)
0 commit comments