File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
utils/re_int_histogram/src
viewer/re_viewer_context/src Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -707,12 +707,7 @@ impl SparseLeaf {
707707
708708 fn max_key_before ( & self , time : u64 ) -> Option < u64 > {
709709 // Addresses are sorted, so iterate backwards to find the largest one < time
710- for & addr in self . addrs . iter ( ) . rev ( ) {
711- if addr < time {
712- return Some ( addr) ;
713- }
714- }
715- None
710+ self . addrs . iter ( ) . rev ( ) . find ( |& & addr| addr < time) . copied ( )
716711 }
717712
718713 fn range_count ( & self , range : RangeU64 ) -> u64 {
Original file line number Diff line number Diff line change @@ -674,7 +674,6 @@ impl TimeControl {
674674 TimeControlResponse :: no_repaint ( ) , // ui will wake up when more data arrives
675675 should_diff_state,
676676 time_histogram_per_timeline,
677- timelines,
678677 old_timeline,
679678 old_playing,
680679 old_state,
@@ -741,7 +740,6 @@ impl TimeControl {
741740 TimeControlResponse :: new ( needs_repaint) ,
742741 should_diff_state,
743742 time_histogram_per_timeline,
744- timelines,
745743 old_timeline,
746744 old_playing,
747745 old_state,
@@ -754,7 +752,6 @@ impl TimeControl {
754752 response : TimeControlResponse ,
755753 should_diff_state : bool ,
756754 time_histogram_per_timeline : & TimeHistogramPerTimeline ,
757- _timelines : & std:: collections:: BTreeMap < TimelineName , Timeline > ,
758755 old_timeline : Timeline ,
759756 old_playing : bool ,
760757 old_state : Option < TimeState > ,
You can’t perform that action at this time.
0 commit comments