From b55c7db3fc15f88ec6f4e3ae19858e69b1715c1f Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 16 Apr 2024 15:13:43 +0200 Subject: [PATCH] clippy and msrv fix --- .github/workflows/ci.yml | 2 +- src/ecss/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f6ab2..6218e5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.61.0 + toolchain: 1.65.0 override: true profile: minimal - uses: actions-rs/cargo@v1 diff --git a/src/ecss/mod.rs b/src/ecss/mod.rs index 37345f3..9b7f37c 100644 --- a/src/ecss/mod.rs +++ b/src/ecss/mod.rs @@ -245,7 +245,7 @@ pub(crate) fn verify_crc16_ccitt_false_from_raw_to_pus_error( crc16: u16, ) -> Result<(), PusError> { verify_crc16_ccitt_false_from_raw(raw_data) - .then(|| ()) + .then_some(()) .ok_or(PusError::ChecksumFailure(crc16)) }