From 06b3f854d4473d2e0be3dd761836b3348ac06a22 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 30 Aug 2019 16:05:04 -0700 Subject: [PATCH] Fix unstable_name_collisions in Bounded for Wrapping --- src/bounds.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bounds.rs b/src/bounds.rs index a133d7a..c9ff749 100644 --- a/src/bounds.rs +++ b/src/bounds.rs @@ -95,8 +95,8 @@ fn wrapping_bounded() { macro_rules! test_wrapping_bounded { ($($t:ty)+) => { $( - assert_eq!(Wrapping::<$t>::min_value().0, <$t>::min_value()); - assert_eq!(Wrapping::<$t>::max_value().0, <$t>::max_value()); + assert_eq!( as Bounded>::min_value().0, <$t>::min_value()); + assert_eq!( as Bounded>::max_value().0, <$t>::max_value()); )+ }; } @@ -110,8 +110,8 @@ fn wrapping_bounded_i128() { macro_rules! test_wrapping_bounded { ($($t:ty)+) => { $( - assert_eq!(Wrapping::<$t>::min_value().0, <$t>::min_value()); - assert_eq!(Wrapping::<$t>::max_value().0, <$t>::max_value()); + assert_eq!( as Bounded>::min_value().0, <$t>::min_value()); + assert_eq!( as Bounded>::max_value().0, <$t>::max_value()); )+ }; }