Skip to content

Commit

Permalink
Merge pull request #472 from iltumio/fix/wrong_impl_in_code_generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich authored Jan 15, 2025
2 parents 1221408 + 3fa00b1 commit d4bef56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/generator/src/models/set_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn field_set_params(
quote! {
pub struct Set(#field_type);

pub fn set<T: From<Set>>(create: Impl Into<#field_type>) -> T {
pub fn set<T: From<Set>>(create: impl Into<#field_type>) -> T {
Set(create.into()).into()
}

Expand Down
2 changes: 1 addition & 1 deletion crates/generator/src/models/where_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ pub fn model_data(
let field_name_snake = snake_ident(field.name());

(
(quote!(#field_name_snake: Impl Into<#field_type>), field_type),
(quote!(#field_name_snake: impl Into<#field_type>), field_type),
(field.scalar_field_type().to_prisma_value(&field_name_snake, &FieldArity::Required), field_name_snake)
)
}).unzip();
Expand Down

0 comments on commit d4bef56

Please sign in to comment.