possible fix for CI
This commit is contained in:
parent
3eac02f697
commit
709ebcdb87
@ -472,15 +472,6 @@ impl WritablePusPacket for PusTmCreator<'_, '_> {
|
|||||||
fn write_to_bytes_crc_no_table(&self, slice: &mut [u8]) -> Result<usize, PusError> {
|
fn write_to_bytes_crc_no_table(&self, slice: &mut [u8]) -> Result<usize, PusError> {
|
||||||
Ok(Self::write_to_bytes_crc_no_table(self, slice)?)
|
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<'_, '_> {
|
impl PartialEq for PusTmCreator<'_, '_> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user