aboutsummaryrefslogtreecommitdiffstats
path: root/src/pinentry.rs
diff options
context:
space:
mode:
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