summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/userid.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/packet/userid.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/packet/userid.rs')
-rw-r--r--openpgp/src/packet/userid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs
index f9f3c1a4..62c0d325 100644
--- a/openpgp/src/packet/userid.rs
+++ b/openpgp/src/packet/userid.rs
@@ -1377,11 +1377,11 @@ mod tests {
// Long strings.
assert_eq!(
- UserID::from(String::from_utf8(vec!['a' as u8; 90]).unwrap())
+ UserID::from(String::from_utf8(vec![b'a'; 90]).unwrap())
.hash_algo_security(),
HashAlgoSecurity::SecondPreImageResistance);
assert_eq!(
- UserID::from(String::from_utf8(vec!['a' as u8; 100]).unwrap())
+ UserID::from(String::from_utf8(vec![b'a'; 100]).unwrap())
.hash_algo_security(),
HashAlgoSecurity::CollisionResistance);
}