提交 c7454853 编写于 作者: K Kevin Ballard

Remove useless ToPrimitive bound on range_inclusive()

上级 e5464527
......@@ -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}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册