From c8bdf42e86d5566740ff5642dff87d0876c68599 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 30 Apr 2023 11:37:55 +0200 Subject: [PATCH] refactor(dagger-codegen): remove unnecessary mutability from field variable in for loop --- crates/dagger-codegen/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dagger-codegen/src/lib.rs b/crates/dagger-codegen/src/lib.rs index 7d89de1..cc233b1 100644 --- a/crates/dagger-codegen/src/lib.rs +++ b/crates/dagger-codegen/src/lib.rs @@ -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()); } }