From 33edf26205f9a4e1682bcd0ffe86c48759cf2945 Mon Sep 17 00:00:00 2001 From: GabrielDertoni Date: Wed, 5 Apr 2023 05:07:50 +0000 Subject: [PATCH] Add link to issue regarding Default const generics impl --- src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.rs b/src/utils.rs index 8cbd522c7f..58adfc6729 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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; }