Skip to content

Commit

Permalink
Fix clippy nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmooney committed May 21, 2024
1 parent 0e10248 commit 156efcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codegen/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ impl Sanitizer {
pub fn sanitize_string(s: &mut String) {
//TODO sanitize other problematic rust tokens
if s == "type" {
*s = "typ".to_owned();
"typ".clone_into(s)
}
if s == "match" {
*s = "match_".to_owned();
"match_".clone_into(s)
}
}
}
Expand Down

0 comments on commit 156efcd

Please sign in to comment.