mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
fmt:
This commit is contained in:
parent
5e9f0e7a59
commit
df4a9b32ac
1 changed files with 1 additions and 5 deletions
|
|
@ -83,11 +83,7 @@ fn test_bare_enum() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_field_enum() {
|
fn test_field_enum() {
|
||||||
#[derive(Debug, PartialEq, BitRead, BitWrite)]
|
#[derive(Debug, PartialEq, BitRead, BitWrite)]
|
||||||
struct CompoundVariant(
|
struct CompoundVariant(#[size = 15] u16, bool);
|
||||||
#[size = 15]
|
|
||||||
u16,
|
|
||||||
bool,
|
|
||||||
);
|
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, BitRead, BitWrite)]
|
#[derive(Debug, PartialEq, BitRead, BitWrite)]
|
||||||
#[discriminant_bits = 4]
|
#[discriminant_bits = 4]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue