Skip to content

Commit e5db9a3

Browse files
authored
chore: set rust edition to 2021 (#751)
1 parent f87eca0 commit e5db9a3

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ readme = "README.md"
1616
keywords = ["http", "async", "non-blocking"]
1717
categories = ["asynchronous", "web-programming", "network-programming"]
1818
exclude = ["fixtures/**", "ci/**"]
19-
edition = "2018"
19+
edition = "2021"
2020
rust-version = "1.63"
2121

2222
[features]

examples/akamai.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use tokio_rustls::TlsConnector;
55

66
use tokio_rustls::rustls::{OwnedTrustAnchor, RootCertStore, ServerName};
77

8-
use std::convert::TryFrom;
98
use std::error::Error;
109
use std::net::ToSocketAddrs;
1110

src/frame/headers.rs

-2
Original file line numberDiff line numberDiff line change
@@ -972,8 +972,6 @@ fn decoded_header_size(name: usize, value: usize) -> usize {
972972

973973
#[cfg(test)]
974974
mod test {
975-
use std::iter::FromIterator;
976-
977975
use super::*;
978976
use crate::frame;
979977
use crate::hpack::{huffman, Encoder};

0 commit comments

Comments
 (0)