From 2121b130e75d5b85911b12be55894d6af028ca21 Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 25 Nov 2024 15:55:18 +0800 Subject: [PATCH] [core] codegen/types: Rename StructField::set_from_value --- nac3core/src/codegen/types/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/types/structure.rs b/nac3core/src/codegen/types/structure.rs index 444fa2ce..adfc53ab 100644 --- a/nac3core/src/codegen/types/structure.rs +++ b/nac3core/src/codegen/types/structure.rs @@ -145,7 +145,7 @@ where } /// Sets the value of this field for a given `obj`. - pub fn set_from_value(&self, obj: StructValue<'ctx>, value: Value) { + pub fn set_for_value(&self, obj: StructValue<'ctx>, value: Value) { obj.set_field_at_index(self.index, value); }