summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-03 10:42:35 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-03 10:43:24 +0200
commit659cba03ceb21af9b539b2f09d64112c6214d42c (patch)
treeaf00d49638d5818c105b18a0cc717c6fcd6527b5 /openpgp
parentb42df6efe2f20cbfc32856cdc89f3ac738f568fd (diff)
openpgp: Use assert_eq! instead of assert! when asserting equality
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index 2a287f02..b208955d 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -1250,7 +1250,7 @@ mod test {
let mut r = Reader::new(Cursor::new(&garbage), None);
let mut buf = [0; 5];
let e = r.read(&mut buf);
- assert!(r.kind() == Some(Kind::File));
+ assert_eq!(r.kind(), Some(Kind::File));
assert!(e.is_ok());
// Again, but this time add a non-whitespace character in the