Skip to content

Commit

Permalink
Merge pull request #11 from str4d/release-0.5.1
Browse files Browse the repository at this point in the history
Release 0.5.1
  • Loading branch information
str4d authored Aug 31, 2024
2 parents a42760f + 1bdc088 commit 7410d73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.*

Expand Down
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
repository = "https://github.com/str4d/pinentry-rs"
readme = "README.md"
Expand Down
5 changes: 3 additions & 2 deletions src/assuan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>),
Expand Down Expand Up @@ -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)
}
}
}

0 comments on commit 7410d73

Please sign in to comment.