Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Oct 13, 2023
1 parent abce4f6 commit 8861339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec-gen/src/type_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ fn derive_method_set(
None
}
});
let field_defined_in_all_forks = &field_defn.fork == &fork_sequence[0];
let field_defined_in_all_forks = field_defn.fork == fork_sequence[0];
let is_optional = deletion_fork.is_some() || !field_defined_in_all_forks;
let is_polymorphic = target_type.polymorphic_fields().contains(&ident.to_string().as_ref());
let ty: syn::Type = if is_polymorphic {
Expand Down

0 comments on commit 8861339

Please sign in to comment.