removed nonfunctioning benchmark
It could also have been fixed by removing a semicolon instead.
This commit is contained in:
parent
68acb393c5
commit
7c28a50a3a
2 changed files with 0 additions and 12 deletions
|
@ -9,9 +9,6 @@
|
|||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
#[cfg(test)]
|
||||
mod benches;
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub use core::num::Saturating;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
use test::Bencher;
|
||||
|
||||
#[bench]
|
||||
fn bench_pow_function(b: &mut Bencher) {
|
||||
let v = (0..1024).collect::<Vec<u32>>();
|
||||
b.iter(|| {
|
||||
v.iter().fold(0u32, |old, new| old.pow(*new as u32));
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue