clippy and msrv fix
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
Rust/spacepackets/pipeline/pr-main This commit looks good

This commit is contained in:
2024-04-16 15:13:43 +02:00
parent 944bcf1320
commit b55c7db3fc
2 changed files with 2 additions and 2 deletions

View File

@ -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))
}