From 62e3454f3807ec6ece80ef3abc8cfdc3a41b58bf Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 8 Oct 2023 14:29:06 +0900 Subject: [PATCH] Migrate to Rust 2021 (#160) --- Cargo.toml | 2 +- src/lib.rs | 1 - src/os/kqueue.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b68168..4c58a1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ name = "async-io" # - Create "v1.x.y" git tag version = "1.13.0" authors = ["Stjepan Glavina "] -edition = "2018" +edition = "2021" rust-version = "1.63" description = "Async I/O and timers" license = "Apache-2.0 OR MIT" diff --git a/src/lib.rs b/src/lib.rs index 851768f..525a408 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,7 +61,6 @@ html_logo_url = "https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png" )] -use std::convert::TryFrom; use std::future::Future; use std::io::{self, IoSlice, IoSliceMut, Read, Write}; use std::net::{SocketAddr, TcpListener, TcpStream, UdpSocket}; diff --git a/src/os/kqueue.rs b/src/os/kqueue.rs index 36d543b..bb7237b 100644 --- a/src/os/kqueue.rs +++ b/src/os/kqueue.rs @@ -5,7 +5,6 @@ use __private::QueueableSealed; use crate::reactor::{Reactor, Readable, Registration}; use crate::Async; -use std::convert::{TryFrom, TryInto}; use std::future::Future; use std::io::{Error, Result}; use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, OwnedFd, RawFd};