Skip to content

Commit

Permalink
Remove useless ToPrimitive bound on range_inclusive()
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed May 21, 2014
1 parent e546452 commit c745485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ pub struct RangeInclusive<A> {

/// Return an iterator over the range [start, stop]
#[inline]
pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One + ToPrimitive>(start: A, stop: A)
pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One>(start: A, stop: A)
-> RangeInclusive<A> {
RangeInclusive{range: range(start, stop), done: false}
}
Expand Down

1 comment on commit c745485

@alexcrichton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.