Skip to content

Commit

Permalink
accomodate to all breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 22, 2024
1 parent ee957f8 commit 987dba4
Show file tree
Hide file tree
Showing 91 changed files with 520 additions and 478 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion crates/re_format/src/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ impl std::fmt::Display for DisplayDataType {
DataType::Decimal(_, _) => "decimal",
DataType::Decimal256(_, _) => "decimal256",
DataType::Extension(name, data_type, _) => {
let s = format!("extension<{name}>[{}]", DisplayDataType(*data_type.clone()));
let s = format!(
"extension<{name}>[{}]",
DisplayDataType((**data_type).clone())
);
return f.write_str(&s);
}
};
Expand Down
7 changes: 5 additions & 2 deletions crates/re_log_types/src/data_table.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use std::collections::{BTreeMap, VecDeque};
use std::{
collections::{BTreeMap, VecDeque},
sync::Arc,
};

use ahash::HashMap;
use itertools::{izip, Itertools as _};
Expand Down Expand Up @@ -810,7 +813,7 @@ impl DataTable {
field
};

let datatype = DataType::List(Box::new(field));
let datatype = DataType::List(Arc::new(field));
let offsets = Offsets::try_from_lengths(column.iter().map(|cell| {
cell.as_ref()
.map_or(0, |cell| cell.num_instances() as usize)
Expand Down
6 changes: 4 additions & 2 deletions crates/re_log_types/src/example_components.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Example components to be used for tests and docs
use std::sync::Arc;

use re_types_core::{components::InstanceKey, Loggable, SizeBytes};

// ----------------------------------------------------------------------------
Expand Down Expand Up @@ -67,10 +69,10 @@ impl Loggable for MyPoint {

fn arrow_datatype() -> arrow2::datatypes::DataType {
use arrow2::datatypes::DataType::Float32;
arrow2::datatypes::DataType::Struct(vec![
arrow2::datatypes::DataType::Struct(Arc::new(vec![
arrow2::datatypes::Field::new("x", Float32, false),
arrow2::datatypes::Field::new("y", Float32, false),
])
]))
}

fn to_arrow_opt<'a>(
Expand Down
4 changes: 2 additions & 2 deletions crates/re_types/src/blueprint/components/column_shares.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/blueprint/components/included_contents.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/blueprint/components/included_queries.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/blueprint/components/row_shares.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/components/annotation_context.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/components/blob.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/re_types/src/components/half_sizes2d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/re_types/src/components/half_sizes3d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crates/re_types/src/components/line_strip2d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crates/re_types/src/components/line_strip3d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/re_types/src/components/material.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/re_types/src/components/mesh_properties.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/re_types/src/components/out_of_tree_transform3d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/re_types/src/components/pinhole_projection.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 987dba4

Please sign in to comment.