diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index 6711e29bcec..42f68cda31b 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -5,7 +5,7 @@ name = "tokio-stream" # - Update CHANGELOG.md. # - Create "tokio-stream-0.1.x" git tag. version = "0.1.12" -edition = "2018" +edition = "2021" rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT" 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 603a4b4affc..88cf0ead654 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -5,7 +5,7 @@ name = "tokio-test" # - Update CHANGELOG.md. # - Create "tokio-test-0.4.x" git tag. version = "0.4.2" -edition = "2018" +edition = "2021" rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT" diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index cf9f0474051..3f4c60e35ed 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -5,7 +5,7 @@ name = "tokio-util" # - Update CHANGELOG.md. # - Create "tokio-util-0.7.x" git tag. version = "0.7.7" -edition = "2018" +edition = "2021" rust-version = "1.56" authors = ["Tokio Contributors "] license = "MIT"