From 761d55d718cd03df8e2cb6f7ba02cb54ff4b30e0 Mon Sep 17 00:00:00 2001 From: oroulet Date: Wed, 8 Jan 2025 13:01:38 +0100 Subject: [PATCH] Update samples/custom-structures-client/src/main.rs Co-authored-by: Sander van Harmelen --- samples/custom-structures-client/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/custom-structures-client/src/main.rs b/samples/custom-structures-client/src/main.rs index b4d55cb3..09c9bd27 100644 --- a/samples/custom-structures-client/src/main.rs +++ b/samples/custom-structures-client/src/main.rs @@ -131,6 +131,7 @@ async fn read_structure_var(session: &Arc, ns: u16) -> Result<(), Statu let Some(Variant::ExtensionObject(val)) = dv.value else { panic!("Unexpected variant type"); }; + let val: DynamicStructure = *val.into_inner_as().unwrap(); dbg!(&val.get_field(0)); dbg!(&val.get_field(1));