diff --git a/Cargo.toml b/Cargo.toml index cbb4bafd..50098342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ readme = "README.md" keywords = ["http", "async", "non-blocking"] categories = ["asynchronous", "web-programming", "network-programming"] exclude = ["fixtures/**", "ci/**"] -edition = "2018" +edition = "2021" rust-version = "1.63" [features] diff --git a/examples/akamai.rs b/examples/akamai.rs index 788bf300..8d87b778 100644 --- a/examples/akamai.rs +++ b/examples/akamai.rs @@ -5,7 +5,6 @@ use tokio_rustls::TlsConnector; use tokio_rustls::rustls::{OwnedTrustAnchor, RootCertStore, ServerName}; -use std::convert::TryFrom; use std::error::Error; use std::net::ToSocketAddrs; diff --git a/src/frame/headers.rs b/src/frame/headers.rs index 1e6bc9b7..7f4ab847 100644 --- a/src/frame/headers.rs +++ b/src/frame/headers.rs @@ -972,8 +972,6 @@ fn decoded_header_size(name: usize, value: usize) -> usize { #[cfg(test)] mod test { - use std::iter::FromIterator; - use super::*; use crate::frame; use crate::hpack::{huffman, Encoder};