Skip to content

Commit a0884cf

Browse files
committed
codegen: Appease nightly clippy too.
1 parent 1e2e80f commit a0884cf

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
@@ -3747,7 +3747,7 @@ impl CodeGenerator for Enum {
37473747

37483748
utils::call_discovered_item_callback(ctx, item, || {
37493749
DiscoveredItem::Enum {
3750-
final_name: name.to_string(),
3750+
final_name: name.clone(),
37513751
}
37523752
});
37533753

@@ -4651,7 +4651,7 @@ impl CodeGenerator for Function {
46514651
}
46524652
utils::call_discovered_item_callback(ctx, item, || {
46534653
DiscoveredItem::Function {
4654-
final_name: canonical_name.to_string(),
4654+
final_name: canonical_name.clone(),
46554655
}
46564656
});
46574657

0 commit comments

Comments
 (0)