Skip to content

Commit

Permalink
Remove duplicate to_string (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored Jun 4, 2024
1 parent c079712 commit c126458
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 c126458

Please sign in to comment.