Skip to content

Commit ff51f68

Browse files
committed
temp
1 parent 784e331 commit ff51f68

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

benches/benchmark_repetitive_react_components.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3513,7 +3513,7 @@ pub fn benchmark_repetitive_react_components_index_map(b: &mut Bencher) {
35133513
let source = REPETITIVE_1K_REACT_COMPONENTS_SOURCE.clone();
35143514

35153515
b.iter(|| {
3516-
black_box(source.index_map(&ObjectPool::default(), &MapOptions::default()));
3516+
black_box(source.to_stream().sections_size_hint());
35173517
});
35183518
}
35193519

src/source.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ impl Source for BoxSource {
206206
dyn_clone::clone_trait_object!(Source);
207207

208208
impl ToStream for BoxSource {
209+
#[inline]
209210
fn to_stream<'a>(&'a self) -> Box<dyn Stream + 'a> {
210211
self.as_ref().to_stream()
211212
}

0 commit comments

Comments
 (0)