Skip to content

Commit

Permalink
Make clippy happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Nov 27, 2024
1 parent 7ce65e7 commit 923fed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/ir/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Type {
return Cow::Borrowed(name);
}

let name = name.replace(|c| c == ' ' || c == ':' || c == '.', "_");
let name = name.replace([' ', ':', '.'], "_");
Cow::Owned(name)
}

Expand Down

0 comments on commit 923fed2

Please sign in to comment.