diff --git a/Cargo.toml b/Cargo.toml index e07b5a5e..0f454fe6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ documentation = "https://docs.rs/tar" license = "MIT OR Apache-2.0" keywords = ["tar", "tarfile", "encoding"] readme = "README.md" -edition = "2018" +edition = "2021" exclude = ["tests/archives/*"] description = """ diff --git a/src/entry.rs b/src/entry.rs index 8a453073..c5cef6b7 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -730,7 +730,6 @@ impl<'a> EntryFields<'a> { uid: u64, gid: u64, ) -> io::Result<()> { - use std::convert::TryInto; use std::os::unix::prelude::*; let uid: libc::uid_t = uid.try_into().map_err(|_| {