diff --git a/Cargo.toml b/Cargo.toml index ddb34e8..21db4cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" keywords = ["api", "network", "file"] categories = ["filesystem", "network-programming", "os"] repository = "https://github.com/bytecodealliance/system-interface" -edition = "2018" +edition = "2021" exclude = ["/.github"] [dependencies] diff --git a/src/fs/file_io_ext.rs b/src/fs/file_io_ext.rs index bfdff14..6094f2b 100644 --- a/src/fs/file_io_ext.rs +++ b/src/fs/file_io_ext.rs @@ -22,7 +22,6 @@ use rustix::fs::fcntl_rdadvise; use rustix::fs::{fallocate, FallocateFlags}; #[cfg(not(any(windows, target_os = "ios", target_os = "macos", target_os = "redox")))] use rustix::io::{preadv, pwritev}; -use std::convert::TryInto; use std::io::{self, IoSlice, IoSliceMut, Seek, SeekFrom}; use std::slice; #[cfg(windows)]