diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index 1295f69..fa034be 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -183,16 +183,6 @@ fn big_16(c: &mut Criterion) { }); } -fn memchr_finder() -> &'static memchr::memmem::Finder<'static> { - static FINDER: OnceLock = OnceLock::new(); - FINDER.get_or_init(|| memchr::memmem::Finder::new("xyzzy")) -} - -fn substring() -> &'static SubstringConst { - static SUBSTRING: OnceLock = OnceLock::new(); - SUBSTRING.get_or_init(|| SubstringConst::new("xyzzy")) -} - fn substr(c: &mut Criterion) { let mut haystack = prefix_string(); haystack.push_str("xyzzy");