diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-03 10:42:35 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-03 10:43:24 +0200 |
commit | 659cba03ceb21af9b539b2f09d64112c6214d42c (patch) | |
tree | af00d49638d5818c105b18a0cc717c6fcd6527b5 /openpgp/src | |
parent | b42df6efe2f20cbfc32856cdc89f3ac738f568fd (diff) |
openpgp: Use assert_eq! instead of assert! when asserting equality
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/armor.rs | 2 |
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 |