Skip to content

Commit

Permalink
Update samples/custom-structures-client/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sander van Harmelen <[email protected]>
  • Loading branch information
oroulet and svanharmelen authored Jan 8, 2025
1 parent 6355dae commit 761d55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/custom-structures-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ async fn read_structure_var(session: &Arc<Session>, 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));
Expand Down

0 comments on commit 761d55d

Please sign in to comment.