1
0
Fork 0
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:
Robin Appelman 2024-11-13 20:47:47 +01:00
commit d6ea837c4e
4 changed files with 14 additions and 12 deletions

View file

@ -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,