mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-25 16:32:42 +01:00
refactor(dagger-codegen): remove unnecessary mutability from field variable in for loop
This commit is contained in:
parent
40ece05140
commit
c8bdf42e86
@ -13,7 +13,7 @@ use self::generator::DynGenerator;
|
|||||||
fn set_schema_parents(mut schema: Schema) -> Schema {
|
fn set_schema_parents(mut schema: Schema) -> Schema {
|
||||||
for t in schema.types.as_mut().into_iter().flatten().flatten() {
|
for t in schema.types.as_mut().into_iter().flatten().flatten() {
|
||||||
let t_parent = t.full_type.clone();
|
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());
|
field.parent_type = Some(t_parent.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user