Skip to content

Commit c375ee4

Browse files
xNxExOxmeithecatte
authored andcommitted
Adapt benchmark to new API
1 parent ec6c1ee commit c375ee4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

benches/from_iterator.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
use criterion::{black_box, criterion_group, criterion_main, Criterion};
2-
use enumflags2::BitFlags;
2+
use enumflags2::{BitFlags, bitflags};
33

4-
#[derive(Clone, Copy, BitFlags)]
4+
#[bitflags]
5+
#[repr(u16)]
6+
#[derive(Clone, Copy)]
57
pub enum Test {
68
Flag1 = 1 << 0,
79
Flag2 = 1 << 1,

0 commit comments

Comments
 (0)