From 7eddb989ca362a19c587a27e5da3f189a0d89f29 Mon Sep 17 00:00:00 2001 From: Joshua Sorenson Date: Tue, 31 Dec 2019 14:39:54 -0600 Subject: [PATCH] Replace `into_iter()` with `iter()` `into_iter()` has been deprecated for arrays in 1.41 and replaced with `iter()`. See https://github.com/rust-lang/rust/issues/66145 . Signed-off-by: Joshua Sorenson --- proptest/CHANGELOG.md | 7 +++++++ proptest/src/arbitrary/_std/io.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/proptest/CHANGELOG.md b/proptest/CHANGELOG.md index dbdc11b7..06bb77c5 100644 --- a/proptest/CHANGELOG.md +++ b/proptest/CHANGELOG.md @@ -1,3 +1,10 @@ +## Unreleased + +### Deprecations + +- `into_iter()` has been deprecated for arrays in 1.41 and replaced with + `iter()`. See[Issue #66145](https://github.com/rust-lang/rust/issues/66145) . + ## 0.9.4 ### Bug Fixes diff --git a/proptest/src/arbitrary/_std/io.rs b/proptest/src/arbitrary/_std/io.rs index 640c8d13..4b043326 100644 --- a/proptest/src/arbitrary/_std/io.rs +++ b/proptest/src/arbitrary/_std/io.rs @@ -116,7 +116,7 @@ arbitrary!(ErrorKind, Union>; , Other , UnexpectedEof // TODO: watch this type for variant-additions. - ].into_iter().cloned().map(Just)) + ].iter().cloned().map(Just)) ); arbitrary!(