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