Skip to content

Commit

Permalink
lint: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-vuiko committed Nov 5, 2024
1 parent 59ae2e7 commit 923cd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query-engine/dmmf/src/ast_builders/datamodel_ast_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn composite_type_field_to_dmmf(field: walkers::CompositeTypeFieldWalker<'_>) ->
has_default_value: field.default_value().is_some(),
native_type: field
.raw_native_type()
.map(|(_, name, args, ..)| (name.to_string(), args.iter().cloned().collect())),
.map(|(_, name, args, ..)| (name.to_string(), args.to_vec())),
default: field
.default_value()
.map(|dv| default_value_to_serde(&dml_default_kind(dv, field.scalar_type()))),
Expand Down Expand Up @@ -200,7 +200,7 @@ fn scalar_field_to_dmmf(field: walkers::ScalarFieldWalker<'_>) -> Field {
},
native_type: field
.raw_native_type()
.map(|(_, name, args, ..)| (name.to_string(), args.iter().cloned().collect())),
.map(|(_, name, args, ..)| (name.to_string(), args.to_vec())),
default: field
.default_value()
.map(|dv| default_value_to_serde(&dml_default_kind(dv.value(), field.scalar_type()))),
Expand Down

0 comments on commit 923cd6b

Please sign in to comment.