Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Ma <[email protected]>
  • Loading branch information
RolandMa1986 committed Jul 23, 2022
1 parent e9ff569 commit 68616e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ fn handle_field_struct(
})
} else {
quote!({
let s = #ty_ref::raw_schema();
let mut s = #ty_ref::raw_schema();
schema.properties.extend(s.properties);
s.extensions = #extensions;
if #ty_ref::required() {
Expand Down
2 changes: 1 addition & 1 deletion macros/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ fn schema_fields(name: &Ident, is_ref: bool) -> proc_macro2::TokenStream {
));

gen.extend(quote!(
#[serde(skip_serializing_if = "std::collections::BTreeMap::is_empty", default = "BTreeMap::default")]
#[serde(skip_serializing_if = "std::collections::BTreeMap::is_empty", default = "std::collections::BTreeMap::default")]
pub extensions: std::collections::BTreeMap<String, serde_json::Value>,
));

Expand Down

0 comments on commit 68616e7

Please sign in to comment.