Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
- name: Run clippy
run: cargo clippy --verbose

- name: Run tests without feature impl_from
- name: Run tests with default features (support serde)
run: cargo test --verbose --package patchable

- name: Run tests without default feature
run: cargo test --verbose --package patchable --no-default-features

- name: cargo test with feature impl_from
run: cargo test --verbose --package patchable --features impl_from
2 changes: 1 addition & 1 deletion patchable-macro/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'a> MacroContext<'a> {
let patch_fields = self.generate_patch_fields();
let body = self.select_fields(
quote! { #generic_params #where_clause { #(#patch_fields),* } },
quote! { #generic_params #where_clause ( #(#patch_fields),* ); },
quote! { #generic_params ( #(#patch_fields),* ) #where_clause; },
quote! {;},
);
let patch_name = &self.patch_struct_name;
Expand Down