From 174879116fd1ed6805137949e763223acd79784c Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 25 Jan 2025 20:10:36 -0500 Subject: Fix incorrect immutable borrow for EnumerationBuilder --- plugins/warp/src/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/warp/src') diff --git a/plugins/warp/src/convert.rs b/plugins/warp/src/convert.rs index acf9aabc..01ba167c 100644 --- a/plugins/warp/src/convert.rs +++ b/plugins/warp/src/convert.rs @@ -470,7 +470,7 @@ pub fn to_bn_type(arch: &A, ty: &Type) -> BNRef { BNType::structure(&builder.finalize()) } TypeClass::Enumeration(c) => { - let builder = BNEnumerationBuilder::new(); + let mut builder = BNEnumerationBuilder::new(); for member in &c.members { // TODO: Add default name? let member_name = member.name.to_owned().unwrap_or("enum_VAL".into()); -- cgit v1.3.1