mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
derive: dont try to parse attributes from outside the crate
This commit is contained in:
parent
0b781fa64a
commit
d6ea837c4e
4 changed files with 14 additions and 12 deletions
|
|
@ -244,10 +244,11 @@ fn test_read_struct3() {
|
|||
assert_eq!(None, bit_size_of::<TestStruct3<LittleEndian>>());
|
||||
}
|
||||
|
||||
#[derive(BitRead, PartialEq, Debug)]
|
||||
#[derive(BitRead, PartialEq, Debug, Default)]
|
||||
#[discriminant_bits = 2]
|
||||
enum TestEnumRest {
|
||||
Foo,
|
||||
#[default]
|
||||
Bar,
|
||||
#[discriminant = "_"]
|
||||
Asd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue