Skip to content

Commit 0b6cd01

Browse files
committed
fixup: tests: test_to_bits: Drop cfg()s
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
1 parent 2f34939 commit 0b6cd01

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tests/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
mod test_attributes;
44
mod test_compile;
5-
#[cfg(feature = "bits")]
65
mod test_to_bits;

tests/test_to_bits.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fn test_to_bits_correct() {
2121
assert_eq!(deku::bitvec::bitvec![1, 1, 1, 1, 0, 0, 0, 1], bits);
2222
}
2323

24-
#[cfg(feature = "bits")]
2524
#[derive(PartialEq, Debug, DekuRead, DekuWrite)]
2625
pub struct TestOver {
2726
#[deku(bits = "4")]
@@ -32,7 +31,6 @@ pub struct TestOver {
3231
pub c: u8,
3332
}
3433

35-
#[cfg(feature = "bits")]
3634
#[test]
3735
fn test_to_bits_correct_over() {
3836
let test_data: &[u8] = &[0xf1, 0x80];
@@ -41,7 +39,6 @@ fn test_to_bits_correct_over() {
4139
assert_eq!(deku::bitvec::bitvec![1, 1, 1, 1, 0, 0, 0, 1, 1], bits);
4240
}
4341

44-
#[cfg(feature = "bits")]
4542
#[derive(PartialEq, Debug, DekuRead, DekuWrite)]
4643
#[deku(id_type = "u8", bits = "4")]
4744
enum TestEnum {

0 commit comments

Comments
 (0)