Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 19, 2023
1 parent 0a3a15b commit 80b056d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/re_arrow_store/src/store_gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl DataStore {
self.timeless_tables.retain(|_, table| {
// If any column is non-empty, we need to keep this table
for num in &table.col_num_instances {
if num != &0.into() {
if num.get() != 0 {
return true;
}
}
Expand All @@ -395,7 +395,7 @@ impl DataStore {
for bucket in table.buckets.values() {
let inner = bucket.inner.read();
for num in &inner.col_num_instances {
if num != &0.into() {
if num.get() != 0 {
return true;
}
}
Expand Down
2 changes: 2 additions & 0 deletions crates/re_log_types/src/num_instances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ impl NumInstances {
}

impl From<NumInstances> for u32 {
#[inline]
fn from(val: NumInstances) -> Self {
val.0
}
}

impl From<u32> for NumInstances {
#[inline]
fn from(value: u32) -> Self {
Self(value)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/re_types/definitions/rerun/datatypes/uint32.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include "rust/attributes.fbs";

namespace rerun.datatypes;

/// A 32bit integer.
/// A 32bit unsigned integer.
struct UInt32 (
"attr.arrow.transparent",
"attr.rust.derive": "Copy, PartialEq, Eq, PartialOrd, Ord",
Expand Down
2 changes: 1 addition & 1 deletion crates/re_types_core/src/datatypes/uint32.rs

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

2 changes: 1 addition & 1 deletion docs/content/reference/types/datatypes/uint32.md

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

2 changes: 1 addition & 1 deletion rerun_cpp/src/rerun/datatypes/uint32.hpp

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

2 changes: 1 addition & 1 deletion rerun_py/rerun_sdk/rerun/datatypes/uint32.py

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

0 comments on commit 80b056d

Please sign in to comment.