From 45856ee84666449a7cbd80712edf459b44123909 Mon Sep 17 00:00:00 2001 From: Clar Charr Date: Fri, 23 Feb 2018 17:21:47 -0500 Subject: [PATCH] Make doc comment less scary. --- src/identities.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/identities.rs b/src/identities.rs index 0158a46..c8aeacf 100644 --- a/src/identities.rs +++ b/src/identities.rs @@ -82,8 +82,9 @@ pub trait One: Sized + Mul { /// Returns `true` if `self` is equal to the multiplicative identity. /// - /// Compatibility note: this method will be a requirement to implement in the future; new - /// implementors should provide it for future-compatibility. + /// For performance reasons, it's best to implement this manually. + /// After a semver bump, this method will be required, and the + /// `where Self: PartialEq` bound will be removed. fn is_one(&self) -> bool where Self: PartialEq { *self == Self::one() }