Skip to content

Commit 7eddb98

Browse files
Replace into_iter() with iter()
`into_iter()` has been deprecated for arrays in 1.41 and replaced with `iter()`. See rust-lang/rust#66145 . Signed-off-by: Joshua Sorenson <[email protected]>
1 parent 7d3310c commit 7eddb98

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

proptest/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Unreleased
2+
3+
### Deprecations
4+
5+
- `into_iter()` has been deprecated for arrays in 1.41 and replaced with
6+
`iter()`. See[Issue #66145](https://github.com/rust-lang/rust/issues/66145) .
7+
18
## 0.9.4
29

310
### Bug Fixes

proptest/src/arbitrary/_std/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ arbitrary!(ErrorKind, Union<Just<Self>>;
116116
, Other
117117
, UnexpectedEof
118118
// TODO: watch this type for variant-additions.
119-
].into_iter().cloned().map(Just))
119+
].iter().cloned().map(Just))
120120
);
121121

122122
arbitrary!(

0 commit comments

Comments
 (0)