Clarify purpose of FaultyIter
This commit is contained in:
parent
edca8e9148
commit
0debb622d6
|
@ -776,6 +776,8 @@ mod tests {
|
||||||
|
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
|
|
||||||
|
// An iterator that lies about its `ExactSizeIterator` implementation.
|
||||||
|
// See https://github.com/PyO3/pyo3/issues/2118
|
||||||
struct FaultyIter(Range<usize>, usize);
|
struct FaultyIter(Range<usize>, usize);
|
||||||
|
|
||||||
impl Iterator for FaultyIter {
|
impl Iterator for FaultyIter {
|
||||||
|
|
|
@ -758,7 +758,9 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
|
|
||||||
|
// An iterator that lies about its `ExactSizeIterator` implementation.
|
||||||
|
// See https://github.com/PyO3/pyo3/issues/2118
|
||||||
struct FaultyIter(Range<usize>, usize);
|
struct FaultyIter(Range<usize>, usize);
|
||||||
|
|
||||||
impl Iterator for FaultyIter {
|
impl Iterator for FaultyIter {
|
||||||
|
|
Loading…
Reference in New Issue