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) } }