From c7454853d21e8ae3b5b4e3c8ee7f02f7a7f6487f Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 20 May 2014 20:27:34 -0700 Subject: [PATCH] Remove useless ToPrimitive bound on range_inclusive() --- src/libcore/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 9fc16b55631a4..da1462a704758 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -2016,7 +2016,7 @@ pub struct RangeInclusive { /// Return an iterator over the range [start, stop] #[inline] -pub fn range_inclusive + Ord + Clone + One + ToPrimitive>(start: A, stop: A) +pub fn range_inclusive + Ord + Clone + One>(start: A, stop: A) -> RangeInclusive { RangeInclusive{range: range(start, stop), done: false} }