From e77713f54a4a99c48f8197495cebbfada9ed9fba Mon Sep 17 00:00:00 2001 From: sylwiaszunejko Date: Thu, 19 Oct 2023 09:36:01 +0200 Subject: [PATCH] examples: update UDT parsing example to be in line with docs --- examples/user-defined-type.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/user-defined-type.rs b/examples/user-defined-type.rs index d42429c65e..53465b2f10 100644 --- a/examples/user-defined-type.rs +++ b/examples/user-defined-type.rs @@ -48,8 +48,8 @@ async fn main() -> Result<()> { // And read like any normal value if let Some(rows) = session.query("SELECT my FROM ks.udt_tab", &[]).await?.rows { for row in rows.into_typed::<(MyType,)>() { - let (my_val,) = row?; - println!("{:?}", my_val) + let (my_type_value,): (MyType,) = row?; + println!("{:?}", my_type_value) } }