diff --git a/CHANGELOG.md b/CHANGELOG.md index 68c0801..eac2ff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to Rust's notion of [Semantic Versioning](https://semver.org/spec/v2.0.0.html). All versions prior to 1.0.0 are beta releases. +## [0.5.1] - 2024-08-31 +### Fixed +- Client requests are now correctly percent-encoded when necessary. + ## [0.5.0] - 2021-08-28 - Bumped `nom` crate to 7.* diff --git a/Cargo.lock b/Cargo.lock index efe2188..f679124 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "either" version = "1.13.0" @@ -54,7 +56,7 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pinentry" -version = "0.5.0" +version = "0.5.1" dependencies = [ "log", "nom", diff --git a/Cargo.toml b/Cargo.toml index 2b68d60..342c88e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pinentry" description = "API for interacting with pinentry binaries" -version = "0.5.0" +version = "0.5.1" authors = ["Jack Grigg "] repository = "https://github.com/str4d/pinentry-rs" readme = "README.md" diff --git a/src/assuan.rs b/src/assuan.rs index b706e21..d9f4545 100644 --- a/src/assuan.rs +++ b/src/assuan.rs @@ -14,6 +14,7 @@ use crate::{Error, Result}; /// /// Reference: https://gnupg.org/documentation/manuals/assuan/Server-responses.html #[derive(Debug)] +#[allow(dead_code)] enum Response { /// Request was successful. Ok(Option), @@ -256,9 +257,9 @@ mod tests { ("bar\r\nbaz", " bar%0D%0Abaz\n"), ("foo\\", " foo%5C\n"), ]; - for (p, want) in pairs { + for (p, want) in &pairs { let have = encode_request("", Some(p)); - assert_eq!(have, want) + assert_eq!(&have, want) } } }