diff options
| author | Mason Reed <mason@vector35.com> | 2025-01-25 20:10:36 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-01-25 20:10:36 -0500 |
| commit | 174879116fd1ed6805137949e763223acd79784c (patch) | |
| tree | b390d86e7454a711d0a2ee0f2538d9af35b3f5d1 /plugins/warp/src | |
| parent | 567988ad3cd7da3fac9298e24f733b61d37c1e13 (diff) | |
Fix incorrect immutable borrow for EnumerationBuilder
Diffstat (limited to 'plugins/warp/src')
| -rw-r--r-- | plugins/warp/src/convert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<A: BNArchitecture>(arch: &A, ty: &Type) -> BNRef<BNType> { 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()); |
