Explorar el Código

Add #[inline] to is_one.

Clar Charr hace 7 años
padre
commit
51dad501aa
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/identities.rs

+ 1 - 0
src/identities.rs

@@ -85,6 +85,7 @@ pub trait One: Sized + Mul<Self, Output = Self> {
     /// 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()
     }