Skip to content

Commit 973104b

Browse files
committed
duplicate import fix
1 parent 3f8ea4f commit 973104b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packed_struct_tests/tests/primitive_enum_types.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use packed_struct::prelude::*;
2+
23
#[derive(PrimitiveEnum, PartialEq, Debug, Clone, Copy)]
34
pub enum EnumU8 {
45
VariantMin = 0,
@@ -50,8 +51,6 @@ pub enum EnumI64 {
5051
VariantMax = 9223372036854775807
5152
}
5253

53-
use packed_struct::prelude::*;
54-
5554
#[test]
5655
fn prim_ty() {
5756
assert_eq!(0 as u8, EnumU8::VariantMin.to_primitive());

packed_struct_tests/tests/primitive_enum_values.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ pub enum EnumI8 {
2121
VariantMax = 127
2222
}
2323

24-
use packed_struct::prelude::*;
25-
2624
#[test]
2725
fn prim_var_ty() {
2826
assert_eq!(-128, EnumI8::VariantMin as i8);

0 commit comments

Comments
 (0)