fix: add commas to fn new parameters (#239)

This commit is contained in:
Bill Avery committed 2025-10-13 13:59:34 -07:00
1 parent db41694c58
commit 8ac2372b3a
2 files changed
+65 -67

No files matched your search

+2 -4
View File
@@ -2616,7 +2616,7 @@ fn make_my_struct() -> {rust_name} {{
}
impl $name {
pub fn new($($field_name: $field_type)*) -> #rust_name {
pub fn new($($field_name: $field_type),*) -> #rust_name {
#rust_name::new(
Self {
$($field_name,)*
@@ -2640,9 +2640,7 @@ fn make_my_struct() -> {rust_name} {{
}
Self {
$($field_name: self
.$field_name
.clone(),)*
$($field_name: self.$field_name.clone(),)*
cef_object: self.cef_object,
}
}