possible fix for CI

This commit is contained in:
Robin Müller 2025-05-16 18:56:52 +02:00
parent 3eac02f697
commit 709ebcdb87
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -472,15 +472,6 @@ impl WritablePusPacket for PusTmCreator<'_, '_> {
fn write_to_bytes_crc_no_table(&self, slice: &mut [u8]) -> Result<usize, PusError> {
Ok(Self::write_to_bytes_crc_no_table(self, slice)?)
}
fn to_vec(&self) -> Result<Vec<u8>, PusError> {
// This is the correct way to do this. See
// [this issue](https://github.com/rust-lang/rust-clippy/issues/4483) for caveats of more
// "efficient" implementations.
let mut vec = alloc::vec![0; self.len_written()];
self.write_to_bytes(&mut vec)?;
Ok(vec)
}
}
impl PartialEq for PusTmCreator<'_, '_> {