From fe57bf664abc11e92e6ab357e25c8d210d571aab Mon Sep 17 00:00:00 2001 From: Timmy Xiao <34635512+tzx@users.noreply.github.com> Date: Tue, 21 Mar 2023 12:27:26 -0400 Subject: [PATCH] Update stream, util, test to 2021 edition --- tokio-stream/Cargo.toml | 4 ++-- tokio-stream/src/stream_map.rs | 2 +- tokio-test/Cargo.toml | 4 ++-- tokio-util/Cargo.toml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index f87b59a3654..42f68cda31b 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -5,8 +5,8 @@ name = "tokio-stream" # - Update CHANGELOG.md. # - Create "tokio-stream-0.1.x" git tag. version = "0.1.12" -edition = "2018" -rust-version = "1.49" +edition = "2021" +rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio-stream/src/stream_map.rs b/tokio-stream/src/stream_map.rs index 215980474b1..ddd14d586d6 100644 --- a/tokio-stream/src/stream_map.rs +++ b/tokio-stream/src/stream_map.rs @@ -568,7 +568,7 @@ where } } -impl std::iter::FromIterator<(K, V)> for StreamMap +impl FromIterator<(K, V)> for StreamMap where K: Hash + Eq, { diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml index 30cacead51f..88cf0ead654 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -5,8 +5,8 @@ name = "tokio-test" # - Update CHANGELOG.md. # - Create "tokio-test-0.4.x" git tag. version = "0.4.2" -edition = "2018" -rust-version = "1.49" +edition = "2021" +rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 267662b4d5b..3f4c60e35ed 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -5,8 +5,8 @@ name = "tokio-util" # - Update CHANGELOG.md. # - Create "tokio-util-0.7.x" git tag. version = "0.7.7" -edition = "2018" -rust-version = "1.49" +edition = "2021" +rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio"