Migrate to Rust 2021 (#27)

This commit is contained in:
Taiki Endo 2023-10-08 14:59:24 +09:00 committed by GitHub
parent aabce50d34
commit 0664dd2e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,7 @@ name = "async-net"
# - Create "v1.x.y" git tag
version = "1.8.0"
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
edition = "2018"
edition = "2021"
rust-version = "1.63"
description = "Async networking primitives for TCP/UDP/Unix communication"
license = "Apache-2.0 OR MIT"

View File

@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::fmt;
use std::io::{self, IoSlice, Read as _, Write as _};
use std::net::{Shutdown, SocketAddr};

View File

@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::io;
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr};
#[cfg(unix)]

View File

@ -2,7 +2,6 @@
//!
//! This module is an async version of [`std::os::unix::net`].
use std::convert::TryFrom;
use std::fmt;
use std::io::{self, Read as _, Write as _};
use std::net::Shutdown;