From 7e8b71db6d0dd68869979c313a5df176cae865d7 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 5 Feb 2024 15:29:18 +0100 Subject: [PATCH] prep patch release --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3c18e6..45ab67d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). # [unreleased] +# [v0.8.1] 2024-02-05 + +## Fixed + +- Added `pub` visibility for `PacketSequenceCtrl::const_new`. + # [v0.8.0] 2024-02-05 ## Added diff --git a/Cargo.toml b/Cargo.toml index e7046ab..418ccac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spacepackets" -version = "0.8.0" +version = "0.8.1" edition = "2021" rust-version = "1.61" authors = ["Robin Mueller "] diff --git a/src/lib.rs b/src/lib.rs index 36e6b2e..9e1ec17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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"); }