File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
graphql_client_codegen/src/codegen Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -406,11 +406,15 @@ impl ExpandedField<'_> {
406406 } ;
407407
408408 let is_id = self . field_type == "ID" ;
409- let is_required = self . field_type_qualifiers . contains ( & GraphqlTypeQualifier :: Required ) ;
409+ let is_required = self
410+ . field_type_qualifiers
411+ . contains ( & GraphqlTypeQualifier :: Required ) ;
410412 let id_deserialize_with = if is_id && is_required {
411413 Some ( quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_id" ) ] ) )
412414 } else if is_id {
413- Some ( quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_option_id" ) ] ) )
415+ Some (
416+ quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_option_id" ) ] ) ,
417+ )
414418 } else {
415419 None
416420 } ;
You can’t perform that action at this time.
0 commit comments