From bdcee04a43464424d372a3511d97a18ab0f5a45e Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 10 Sep 2024 19:38:09 +0100 Subject: [PATCH 1/3] bump pinned clippy version --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3f2ef49c7..1eb228de28 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@master - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2023-10-21 + toolchain: nightly-2024-09-10 components: clippy - uses: actions-rs-plus/clippy-check@v2 with: From a75b03755d4a33e32c61471ba112255a64ce1cd1 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 10 Sep 2024 19:41:32 +0100 Subject: [PATCH 2/3] fix error --- mavlink-core/src/utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mavlink-core/src/utils.rs b/mavlink-core/src/utils.rs index efefcbadb8..d640c5ee82 100644 --- a/mavlink-core/src/utils.rs +++ b/mavlink-core/src/utils.rs @@ -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 { From 148a4b4efbed1954763ec01ec6696bfe392c7562 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 10 Sep 2024 19:42:24 +0100 Subject: [PATCH 3/3] fix formatting --- mavlink-core/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mavlink-core/src/utils.rs b/mavlink-core/src/utils.rs index d640c5ee82..b8126360ec 100644 --- a/mavlink-core/src/utils.rs +++ b/mavlink-core/src/utils.rs @@ -20,7 +20,7 @@ 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 /// 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).