diff --git a/crates/re_query_cache/Cargo.toml b/crates/re_query_cache/Cargo.toml index d2bb57e25a221..71a9dfbe35efb 100644 --- a/crates/re_query_cache/Cargo.toml +++ b/crates/re_query_cache/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "re_query_cache" authors.workspace = true -description = "Temporary crate meant to replace re_query_cache" +description = "Caching datastructures for re_query" edition.workspace = true homepage.workspace = true include.workspace = true diff --git a/crates/re_query_cache/README.md b/crates/re_query_cache/README.md index 9886d43eb96ec..70613732471d6 100644 --- a/crates/re_query_cache/README.md +++ b/crates/re_query_cache/README.md @@ -1,5 +1,10 @@ # re_query_cache -Temporary crate for implementing the new cached data APIs. Not published. +Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates. -Will replace `re_query_cache` when ready. +[![Latest version](https://img.shields.io/crates/v/re_query_cache.svg)](https://crates.io/crates/re_query_cache) +[![Documentation](https://docs.rs/re_query/badge.svg)](https://docs.rs/re_query) +![MIT](https://img.shields.io/badge/license-MIT-blue.svg) +![Apache](https://img.shields.io/badge/license-Apache-blue.svg) + +Caching datastructures for `re_query`. diff --git a/crates/re_query_cache/src/flat_vec_deque.rs b/crates/re_query_cache/src/flat_vec_deque.rs index a5508f0391c17..1a89f41628e97 100644 --- a/crates/re_query_cache/src/flat_vec_deque.rs +++ b/crates/re_query_cache/src/flat_vec_deque.rs @@ -111,8 +111,7 @@ impl ErasedFlatVecDeque for FlatVecDeque { /// optimizes for writes. /// /// You can think of this as the native/deserialized version of an Arrow `ListArray`. -/// This is particularly useful when working with many small arrays of data (e.g. Rerun's -/// `TimeSeriesScalar`s). +/// This is particularly useful when working with many small arrays of data (e.g. Rerun's `Scalar`s). // // TODO(cmc): We could even use a bitmap for T=Option, which would bring this that much // closer to a deserialized version of an Arrow array. diff --git a/crates/re_query_cache/tests/latest_at.rs b/crates/re_query_cache/tests/latest_at.rs index b8ce810f7cc53..4073c5ec7e537 100644 --- a/crates/re_query_cache/tests/latest_at.rs +++ b/crates/re_query_cache/tests/latest_at.rs @@ -170,7 +170,7 @@ fn splatted_query() { } #[test] -fn invalidation_xxx() { +fn invalidation() { let entity_path = "point"; let test_invalidation = |query: LatestAtQuery, diff --git a/crates/re_space_view_spatial/src/visualizers/results_ext.rs b/crates/re_space_view_spatial/src/visualizers/results_ext.rs index 25913ef25f9de..27474a9cc886b 100644 --- a/crates/re_space_view_spatial/src/visualizers/results_ext.rs +++ b/crates/re_space_view_spatial/src/visualizers/results_ext.rs @@ -80,15 +80,11 @@ impl CachedRangeResultsExt for CachedRangeResults { // TODO(#5607): what should happen if the promise is still pending? let (front_status, back_status) = results.status(); match front_status { - PromiseResult::Error(err) => { - return Err(re_query_cache::QueryError::Other(err.into())) - } + PromiseResult::Error(err) => return Err(re_query_cache::QueryError::Other(err.into())), PromiseResult::Pending | PromiseResult::Ready(_) => {} } match back_status { - PromiseResult::Error(err) => { - return Err(re_query_cache::QueryError::Other(err.into())) - } + PromiseResult::Error(err) => return Err(re_query_cache::QueryError::Other(err.into())), PromiseResult::Pending | PromiseResult::Ready(_) => {} } @@ -134,15 +130,11 @@ impl CachedRangeResultsExt for CachedLatestAtResults { // TODO(#5607): what should happen if the promise is still pending? let (front_status, back_status) = data.status(); match front_status { - PromiseResult::Error(err) => { - return Err(re_query_cache::QueryError::Other(err.into())) - } + PromiseResult::Error(err) => return Err(re_query_cache::QueryError::Other(err.into())), PromiseResult::Pending | PromiseResult::Ready(_) => {} } match back_status { - PromiseResult::Error(err) => { - return Err(re_query_cache::QueryError::Other(err.into())) - } + PromiseResult::Error(err) => return Err(re_query_cache::QueryError::Other(err.into())), PromiseResult::Pending | PromiseResult::Ready(_) => {} }