Skip to content

Commit 5480cc3

Browse files
committed
post-merge craziness
1 parent 5fb6abd commit 5480cc3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/re_query_cache/src/range.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ macro_rules! impl_query_archetype_range {
7272
};
7373

7474
fn upsert_results<'a, A, $($pov,)+ $($comp,)*>(
75-
arch_views: impl Iterator<Item = (Option<TimeInt>, re_query::ArchetypeView<A>)>,
75+
arch_views: impl Iterator<Item = re_query::ArchetypeView<A>>,
7676
bucket: &mut crate::CacheBucket,
7777
) -> crate::Result<u64>
7878
where
@@ -87,8 +87,8 @@ macro_rules! impl_query_archetype_range {
8787
let mut added_entries = 0u64;
8888
let mut added_size_bytes = 0u64;
8989

90-
for (data_time, arch_view) in arch_views {
91-
let data_time = data_time.unwrap_or(TimeInt::MIN); // TODO(cmc): timeless
90+
for arch_view in arch_views {
91+
let data_time = arch_view.data_time().unwrap_or(TimeInt::MIN); // TODO(cmc): timeless
9292

9393
if bucket.contains_data_row(data_time, arch_view.primary_row_id()) {
9494
continue;

crates/re_query_cache/tests/range.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ fn query_and_compare(store: &DataStore, query: &RangeQuery, ent_path: &EntityPat
355355
let expected = re_query::range_archetype::<MyPoints, { MyPoints::NUM_COMPONENTS }>(
356356
store, query, ent_path,
357357
);
358-
for (data_time, arch_view) in expected {
359-
expected_data_times.push(data_time);
358+
for arch_view in expected {
359+
expected_data_times.push(arch_view.data_time());
360360
expected_instance_keys.push(arch_view.iter_instance_keys().collect_vec());
361361
expected_positions.push(
362362
arch_view

0 commit comments

Comments
 (0)