Add a #[must_use] to the was_contributory check.

This commit is contained in:
Isis Lovecruft 2021-09-14 19:51:02 +00:00
parent c13e102f95
commit 91babd286f
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -212,6 +212,7 @@ impl SharedSecret {
/// [relevant]: https://tools.ietf.org/html/rfc7748#page-15
/// [public]: https://vnhacker.blogspot.com/2015/09/why-not-validating-curve25519-public.html
/// [discussions]: https://vnhacker.blogspot.com/2016/08/the-internet-of-broken-protocols.html
#[must_use]
pub fn was_contributory(&self) -> bool {
!self.0.is_identity()
}