Skip to content

Commit

Permalink
Return cloned name instead of new Ident
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi committed Jun 19, 2023
1 parent 09da43b commit c38d686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typed-builder-macro/src/field_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'a> FieldInfo<'a> {
} else if let Some(suffix) = &self.builder_attr.setter.suffix {
Ident::new(&format!("{}{}", name, suffix), Span::call_site())
} else {
Ident::new_raw(&name, Span::call_site())
self.name.clone()
}
}

Expand Down

0 comments on commit c38d686

Please sign in to comment.