This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Description
|
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)] |
|
pub struct SignedAvailabilityBitfields(pub Vec<SignedAvailabilityBitfield>); |
Rationale:
- We pass around binary encoded bitfields. A newtype may not encode to the same representation as its wrapped type; a typedef always will.
- The wrapped type is public and we do not implement any interesting traits on the newtype; we aren't gaining any advantage in type safety or ease-of-use.
I suspect this was simply an oversight, but we may as well fix it.