From e5db9a309a34e97c3edbfdb3d23d3afa256696c0 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 22 Feb 2024 20:47:11 +0100 Subject: [PATCH] chore: set rust `edition` to `2021` (#751) --- Cargo.toml | 2 +- examples/akamai.rs | 1 - src/frame/headers.rs | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) 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};