Skip to content

Commit 86b24c2

Browse files
committed
minor mut change
1 parent a4d22e5 commit 86b24c2

File tree

1 file changed

+1
-2
lines changed
  • c2rust-refactor/src/rewrite/strategy

1 file changed

+1
-2
lines changed

c2rust-refactor/src/rewrite/strategy/print.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,7 @@ fn rewrite_at_impl<T>(old_span: Span, new: &T, mut rcx: RewriteCtxtRef) -> bool
790790
where
791791
T: PrintParse + RecoverChildren + Splice + MaybeGetNodeId,
792792
{
793-
let printed = add_comments(new.to_string(), new, &rcx);
794-
let mut printed = printed;
793+
let mut printed = add_comments(new.to_string(), new, &rcx);
795794
if printed.trim().is_empty() {
796795
// When the statement wrapper has DUMMY_SP the pretty printer outputs nothing even though the
797796
// original source had a full `let`. Pull the old snippet (which still contains the attrs/body)

0 commit comments

Comments
 (0)