Skip to content

Commit df6a5c9

Browse files
Migrate to edition 2021
Edition 2021 requires rustc 1.56+ so it's possible. 1. `cargo fix --edition` 2. Field "edition" updated in "Cargo.toml".
1 parent 3067893 commit df6a5c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description = "Extra iterator adaptors, iterator methods, free functions, and ma
1313
keywords = ["iterator", "data-structure", "zip", "product"]
1414
categories = ["algorithms", "rust-patterns", "no-std", "no-std::no-alloc"]
1515

16-
edition = "2018"
16+
edition = "2021"
1717

1818
# When bumping, please resolve all `#[allow(clippy::*)]` that are newly resolvable.
1919
rust-version = "1.63.0"

tests/specializations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ where
4343
I: Iterator + Clone,
4444
{
4545
macro_rules! check_specialized {
46-
($src:expr, |$it:pat| $closure:expr) => {
46+
($src:expr, |$it:pat_param| $closure:expr) => {
4747
// Many iterators special-case the first elements, so we test specializations for iterators that have already been advanced.
4848
let mut src = $src.clone();
4949
for _ in 0..5 {
@@ -101,7 +101,7 @@ where
101101
I: DoubleEndedIterator + Clone,
102102
{
103103
macro_rules! check_specialized {
104-
($src:expr, |$it:pat| $closure:expr) => {
104+
($src:expr, |$it:pat_param| $closure:expr) => {
105105
// Many iterators special-case the first elements, so we test specializations for iterators that have already been advanced.
106106
let mut src = $src.clone();
107107
for step in 0..8 {
@@ -481,7 +481,7 @@ quickcheck! {
481481

482482
fn helper(it: impl DoubleEndedIterator<Item = Result<u8, u8>> + Clone) {
483483
macro_rules! check_results_specialized {
484-
($src:expr, |$it:pat| $closure:expr) => {
484+
($src:expr, |$it:pat_param| $closure:expr) => {
485485
assert_eq!(
486486
itertools::process_results($src.clone(), |$it| $closure),
487487
itertools::process_results($src.clone(), |i| {

0 commit comments

Comments
 (0)