diff --git a/crates/re_components/src/color.rs b/crates/re_components/src/color.rs index 781fc9d2ae313..7cde9e8d9400a 100644 --- a/crates/re_components/src/color.rs +++ b/crates/re_components/src/color.rs @@ -1,13 +1,5 @@ /// An RGBA color tuple with unmultiplied/separate alpha, /// in sRGB gamma space with linear alpha. -/// -/// ``` -/// use re_types::components::ColorRGBA; -/// use arrow2_convert::field::ArrowField; -/// use arrow2::datatypes::{DataType, Field}; -/// -/// assert_eq!(ColorRGBA::data_type(), DataType::UInt32); -/// ``` #[derive( Clone, Copy, diff --git a/crates/re_components/src/label.rs b/crates/re_components/src/label.rs index d015f699176fe..7301e373eb969 100644 --- a/crates/re_components/src/label.rs +++ b/crates/re_components/src/label.rs @@ -1,14 +1,6 @@ use arrow2_convert::{ArrowDeserialize, ArrowField, ArrowSerialize}; /// A String label component -/// -/// ``` -/// use re_components::Label; -/// use arrow2_convert::field::ArrowField; -/// use arrow2::datatypes::{DataType, Field}; -/// -/// assert_eq!(Label::data_type(), DataType::Utf8); -/// ``` #[derive(Debug, Clone, PartialEq, Eq, ArrowField, ArrowSerialize, ArrowDeserialize)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[arrow_field(transparent)] diff --git a/crates/re_data_ui/src/component_ui_registry.rs b/crates/re_data_ui/src/component_ui_registry.rs index 3af2ee23d52ab..5e39731392f70 100644 --- a/crates/re_data_ui/src/component_ui_registry.rs +++ b/crates/re_data_ui/src/component_ui_registry.rs @@ -39,7 +39,7 @@ pub fn create_component_ui_registry() -> ComponentUiRegistry { add::(&mut registry); add::(&mut registry); add::(&mut registry); - // add::(&mut registry); + // add::(&mut registry); add::(&mut registry); add::(&mut registry); add::(&mut registry); diff --git a/crates/re_query/src/visit.rs b/crates/re_query/src/visit.rs index e4dd38fc2b7be..a6ed88764b672 100644 --- a/crates/re_query/src/visit.rs +++ b/crates/re_query/src/visit.rs @@ -7,8 +7,7 @@ //! # Usage //! ``` //! # use re_query::EntityView; -//! # use re_components::{ColorRGBA, Point2D}; -//! # use re_types::components::InstanceKey; +//! # use re_types::components::{Color, Point2D, InstanceKey}; //! //! let instances = InstanceKey::from_iter(0..3); //! @@ -19,9 +18,9 @@ //! ]; //! //! let colors = [ -//! ColorRGBA(0), -//! ColorRGBA(1), -//! ColorRGBA(2), +//! Color(0), +//! Color(1), +//! Color(2), //! ]; //! //! let entity_view = EntityView::from_native2( @@ -30,10 +29,10 @@ //! ); //! //! let mut points_out = Vec::::new(); -//! let mut colors_out = Vec::::new(); +//! let mut colors_out = Vec::::new(); //! //! entity_view -//! .visit2(|_: InstanceKey, point: Point2D, color: Option| { +//! .visit2(|_: InstanceKey, point: Point2D, color: Option| { //! points_out.push(point); //! colors_out.push(color.unwrap()); //! }) diff --git a/crates/rerun/src/lib.rs b/crates/rerun/src/lib.rs index 6094f924c4ce2..bcb31208ce079 100644 --- a/crates/rerun/src/lib.rs +++ b/crates/rerun/src/lib.rs @@ -33,11 +33,11 @@ //! # use rerun::external::image; //! # fn capture_image() -> image::DynamicImage { Default::default() } //! # fn positions() -> Vec { Default::default() } -//! # fn colors() -> Vec { Default::default() } +//! # fn colors() -> Vec { Default::default() } //! let rec_stream = rerun::RecordingStreamBuilder::new("my_app").buffered()?; //! //! let points: Vec = positions(); -//! let colors: Vec = colors(); +//! let colors: Vec = colors(); //! let image: image::DynamicImage = capture_image(); //! //! rerun::MsgSender::new("points")