Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Sep 10, 2024
1 parent bdcee04 commit a75b037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mavlink-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub fn remove_trailing_zeroes(data: &[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
/// `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 trait RustDefault: Copy {
Expand Down

0 comments on commit a75b037

Please sign in to comment.