diff --git a/bench/src/bench.rs b/bench/src/bench.rs index 3f25438..b6687f4 100644 --- a/bench/src/bench.rs +++ b/bench/src/bench.rs @@ -244,9 +244,10 @@ fn sentences(c: &mut Criterion) { fn byte_lines(c: &mut Criterion) { use bstr::io::BufReadExt; - let mut corpus = SUBTITLE_EN_HUGE; + let corpus = SUBTITLE_EN_HUGE; define(c, "bstr/for_byte_line", "ascii", corpus, move |b| { b.iter(|| { + let mut corpus = corpus; let mut count = 0; corpus .for_byte_line(|line| {