aboutsummaryrefslogtreecommitdiffstats
path: root/src/pinentry.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-02-18 23:55:19 -0500
committerJesse Luehrs <doy@tozt.net>2023-02-18 23:55:19 -0500
commita54f18f445e5bb13231ab3c716a32d1706119b5f (patch)
treef08cba15c7f47261c03860f8ca4f4839f43f0e6e /src/pinentry.rs
parent93a6fb1027243a0f35d99373d84584b33a46c202 (diff)
downloadrbw-a54f18f445e5bb13231ab3c716a32d1706119b5f.tar.gz
rbw-a54f18f445e5bb13231ab3c716a32d1706119b5f.zip
more clippy cleanups
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r--src/pinentry.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs
index d3bf65a..f7d36c7 100644
--- a/src/pinentry.rs
+++ b/src/pinentry.rs
@@ -160,7 +160,6 @@ fn percent_decode(buf: &mut [u8]) -> usize {
if c == b'%' && read_idx + 2 < len {
if let Some(h) = char::from(buf[read_idx + 1]).to_digit(16) {
- #[allow(clippy::cast_possible_truncation)]
if let Some(l) = char::from(buf[read_idx + 2]).to_digit(16) {
// h and l were parsed from a single hex digit, so they
// must be in the range 0-15, so these unwraps are safe