From fd92fe48e87462275dbf7fd1678d5fa89fd52ea1 Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Sun, 22 Sep 2024 17:12:27 -0500 Subject: [PATCH] Expose Header::try_from_str publicly --- CHANGELOG.md | 4 ++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/header.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca99876..f7a3d61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +## [0.3.3] - 2024-07-22 + +- Expose `Header::try_from_str` publicly + ## [0.3.2] - 2024-07-22 - Publish to crates.io, and update link to docs diff --git a/Cargo.lock b/Cargo.lock index ee271d3..ebbdac5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "bbqr" -version = "0.3.1" +version = "0.3.3" dependencies = [ "data-encoding", "fast_qr", diff --git a/Cargo.toml b/Cargo.toml index c4b1426..446b926 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bbqr" -version = "0.3.2" +version = "0.3.3" edition = "2021" license = "MIT" rust-version = "1.68" diff --git a/src/header.rs b/src/header.rs index 01803d5..6d92429 100644 --- a/src/header.rs +++ b/src/header.rs @@ -62,7 +62,7 @@ impl Header { } /// Try to parse a header from a string - pub(crate) fn try_from_str(header_str: &str) -> Result { + pub fn try_from_str(header_str: &str) -> Result { if header_str.is_empty() { return Err(HeaderParseError::Empty); }