refactor(dagger-codegen): remove unnecessary mutability from field variable in for loop

This commit is contained in:
Kasper Juul Hermansen 2023-04-30 11:37:55 +02:00
parent 40ece05140
commit c8bdf42e86
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -13,7 +13,7 @@ use self::generator::DynGenerator;
fn set_schema_parents(mut schema: Schema) -> Schema {
for t in schema.types.as_mut().into_iter().flatten().flatten() {
let t_parent = t.full_type.clone();
for mut field in t.full_type.fields.as_mut().into_iter().flatten() {
for field in t.full_type.fields.as_mut().into_iter().flatten() {
field.parent_type = Some(t_parent.clone());
}
}