Skip to content

Commit

Permalink
Remove duplicate to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Jun 3, 2024
1 parent c079712 commit 9245634
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions autocorrect/src/rule/strategery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ impl Strategery {
return out.to_string();
}

let out = self
.add_space_reverse_re
.replace_all(&out, "$1 $2")
.to_string();
let out = self.add_space_reverse_re.replace_all(&out, "$1 $2");
out.to_string()
}

Expand Down

0 comments on commit 9245634

Please sign in to comment.