From 51fdafc18cb578afc814916a64ec85ead6afc868 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 21 Nov 2024 16:07:37 +0100 Subject: [PATCH] Fix reflection --- crates/build/re_types_builder/src/codegen/rust/reflection.rs | 2 +- crates/viewer/re_viewer/src/reflection/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/build/re_types_builder/src/codegen/rust/reflection.rs b/crates/build/re_types_builder/src/codegen/rust/reflection.rs index de20bee2951d..308929bbef70 100644 --- a/crates/build/re_types_builder/src/codegen/rust/reflection.rs +++ b/crates/build/re_types_builder/src/codegen/rust/reflection.rs @@ -136,7 +136,7 @@ fn generate_component_reflection( || contents.contains(&format!("impl Default for super::{}", &obj.name)) }); let custom_placeholder = if auto_derive_default || has_custom_default_impl { - quote! { Some(#type_name::default().to_arrow()?) } + quote! { Some(#type_name::default().to_arrow2()?) } } else { quote! { None } }; diff --git a/crates/viewer/re_viewer/src/reflection/mod.rs b/crates/viewer/re_viewer/src/reflection/mod.rs index 1eca542ba12e..0eea1468ccb8 100644 --- a/crates/viewer/re_viewer/src/reflection/mod.rs +++ b/crates/viewer/re_viewer/src/reflection/mod.rs @@ -86,7 +86,9 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "Describe a component column to be selected in the dataframe view.", - custom_placeholder: Some(ComponentColumnSelector::default().to_arrow2()?), + custom_placeholder: Some( + ComponentColumnSelector::default().to_arrow2()?, + ), datatype: ComponentColumnSelector::arrow2_datatype(), }, ),