Skip to content

Commit ad9af55

Browse files
committed
codegen: Appease nightly clippy too.
1 parent fc747b7 commit ad9af55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindgen/codegen/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,7 +3749,7 @@ impl CodeGenerator for Enum {
37493749

37503750
utils::call_discovered_item_callback(ctx, item, || {
37513751
DiscoveredItem::Enum {
3752-
final_name: name.to_string(),
3752+
final_name: name.clone(),
37533753
}
37543754
});
37553755

@@ -4653,7 +4653,7 @@ impl CodeGenerator for Function {
46534653
}
46544654
utils::call_discovered_item_callback(ctx, item, || {
46554655
DiscoveredItem::Function {
4656-
final_name: canonical_name.to_string(),
4656+
final_name: canonical_name.clone(),
46574657
}
46584658
});
46594659

0 commit comments

Comments
 (0)