From 2172a9368bca7580dc3260658da05770939dbd7a Mon Sep 17 00:00:00 2001 From: Yoan Lecoq Date: Fri, 21 Apr 2017 19:10:42 +0200 Subject: [PATCH] impl One for Wrapping doesn't require Add --- traits/src/identities.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traits/src/identities.rs b/traits/src/identities.rs index 6bd9f00..889b11d 100644 --- a/traits/src/identities.rs +++ b/traits/src/identities.rs @@ -105,7 +105,7 @@ one_impl!(i64, 1i64); one_impl!(f32, 1.0f32); one_impl!(f64, 1.0f64); -impl One for Wrapping where Wrapping: Add> + Mul> { +impl One for Wrapping where Wrapping: Mul> { fn one() -> Self { Wrapping(T::one()) }