summaryrefslogtreecommitdiffstats
path: root/openpgp/src/fmt.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 15:38:26 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:58 +0200
commit0c538f122d7a498a58f9b380b6be03a40f827c3e (patch)
treee6f48dacad4a5ab54d8acbbf54f781352688c43e /openpgp/src/fmt.rs
parent5d029cbf42621452666bd084f7beecb7d3d885a4 (diff)
Lint: Use byte literals.
- https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
Diffstat (limited to 'openpgp/src/fmt.rs')
-rw-r--r--openpgp/src/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/fmt.rs b/openpgp/src/fmt.rs
index 5c62d1bd..4e04e74f 100644
--- a/openpgp/src/fmt.rs
+++ b/openpgp/src/fmt.rs
@@ -216,7 +216,7 @@ pub(crate) fn to_hex(s: &[u8], pretty: bool) -> String {
/// This function skips whitespace if `pretty` is set.
pub(crate) fn from_hex(hex: &str, pretty: bool) -> Result<Vec<u8>> {
const BAD: u8 = 255u8;
- const X: u8 = 'x' as u8;
+ const X: u8 = b'x';
let mut nibbles = hex.chars().filter_map(|x| {
match x {