summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/userid.rs
diff options
context:
space:
mode:
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);
}