Merge pull request 'v0.8.1' (#60) from prep-v0.8.1 into main
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
Reviewed-on: #60
This commit is contained in:
commit
2fd5860e18
@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
# [v0.8.1] 2024-02-05
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
- Added `pub` visibility for `PacketSequenceCtrl::const_new`.
|
||||||
|
|
||||||
# [v0.8.0] 2024-02-05
|
# [v0.8.0] 2024-02-05
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "spacepackets"
|
name = "spacepackets"
|
||||||
version = "0.8.0"
|
version = "0.8.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.61"
|
rust-version = "1.61"
|
||||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||||
|
@ -311,7 +311,7 @@ pub struct PacketSequenceCtrl {
|
|||||||
impl PacketSequenceCtrl {
|
impl PacketSequenceCtrl {
|
||||||
/// const variant of [PacketSequenceCtrl::new], but panics if the sequence count exceeds
|
/// const variant of [PacketSequenceCtrl::new], but panics if the sequence count exceeds
|
||||||
/// [MAX_SEQ_COUNT].
|
/// [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 {
|
if seq_count > MAX_SEQ_COUNT {
|
||||||
panic!("Sequence count too large");
|
panic!("Sequence count too large");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user