prep patch release
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
2024-02-05 15:29:18 +01:00
parent c3cc6d5c73
commit 7e8b71db6d
3 changed files with 8 additions and 2 deletions

View File

@ -311,7 +311,7 @@ pub struct PacketSequenceCtrl {
impl PacketSequenceCtrl {
/// const variant of [PacketSequenceCtrl::new], but panics if the sequence count exceeds
/// [MAX_SEQ_COUNT].
const fn const_new(seq_flags: SequenceFlags, seq_count: u16) -> PacketSequenceCtrl {
pub const fn const_new(seq_flags: SequenceFlags, seq_count: u16) -> PacketSequenceCtrl {
if seq_count > MAX_SEQ_COUNT {
panic!("Sequence count too large");
}