Skip to content

Commit aa7ba97

Browse files
committed
Make clippy happy :)
1 parent a6fc81d commit aa7ba97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/ir/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl Type {
248248
return Cow::Borrowed(name);
249249
}
250250

251-
let name = name.replace(|c| c == ' ' || c == ':' || c == '.', "_");
251+
let name = name.replace([' ', ':', '.'], "_");
252252
Cow::Owned(name)
253253
}
254254

0 commit comments

Comments
 (0)