mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
Remove useless ToPrimitive bound on range_inclusive()
This commit is contained in:
+1
-1
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user