datrs / hypercore

Secure, distributed, append-only log
https://docs.rs/hypercore
Apache License 2.0
327 stars 37 forks source link

Properly check that result is an error #64

Closed khernyo closed 5 years ago

khernyo commented 5 years ago

Fixes a compile error in one of the tests on current rust nightly (1.36.0):

error: unused return value of `std::result::Result::<T, E>::is_err` that must be used
  --> src/crypto/key_pair.rs:48:3
   |
48 |   verify(&keypair.public, b"oops", Some(&sig)).is_err();
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |