Skip to content

Commit

Permalink
Add link to issue regarding Default const generics impl
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielDertoni authored and patrickelectric committed May 3, 2023
1 parent 5c70c2b commit 33edf26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub(crate) fn remove_trailing_zeroes(data: &mut [u8]) -> usize {
/// A trait very similar to `Default` but is only implemented for the equivalent Rust types to
/// `MavType`s. This is only needed because rust doesn't currently implement `Default` for arrays
/// of all sizes. In particular this trait is only ever used when the "serde" feature is enabled.
/// For more information, check out [this issue](https://users.rust-lang.org/t/issue-for-derives-for-arrays-greater-than-size-32/59055/3).
pub(crate) trait RustDefault: Copy {
fn rust_default() -> Self;
}
Expand Down

0 comments on commit 33edf26

Please sign in to comment.