From 51dad501aabddc6a84ff2d1a65fb345aac7b45ca Mon Sep 17 00:00:00 2001 From: Clar Charr Date: Fri, 23 Feb 2018 17:44:07 -0500 Subject: [PATCH] Add #[inline] to is_one. --- src/identities.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/identities.rs b/src/identities.rs index c8aeacf..3306e5f 100644 --- a/src/identities.rs +++ b/src/identities.rs @@ -85,6 +85,7 @@ pub trait One: Sized + Mul { /// 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. + #[inline] fn is_one(&self) -> bool where Self: PartialEq { *self == Self::one() }