Skip to content

Commit

Permalink
Derive Clone for generated object structures
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBrouwersHarries authored and badboy committed Oct 15, 2024
1 parent 6a99f4e commit 303b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glean_parser/templates/rust.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Jinja2 template is not. Please file bugs! #}
{{ generate_structure(name ~ "Item", struct["items"]) }}

{% elif struct.type == "object" %}
#[derive(Debug, Hash, Eq, PartialEq, ::glean::traits::__serde::Serialize, ::glean::traits::__serde::Deserialize)]
#[derive(Debug, Hash, Eq, PartialEq, Clone, ::glean::traits::__serde::Serialize, ::glean::traits::__serde::Deserialize)]
#[serde(crate = "::glean::traits::__serde")]
#[serde(deny_unknown_fields)]
pub struct {{ name }} {
Expand Down

0 comments on commit 303b23c

Please sign in to comment.