diff --git a/Cargo.toml b/Cargo.toml index 1ea86f2..da43384 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["asonix "] license = "AGPL-3.0" readme = "README.md" repository = "https://git.asonix.dog/asonix/pict-rs" -edition = "2018" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] diff --git a/src/middleware.rs b/src/middleware.rs index 47dbd28..3c08eff 100644 --- a/src/middleware.rs +++ b/src/middleware.rs @@ -113,7 +113,6 @@ where .headers() .get("X-Request-Deadline") .and_then(|deadline| { - use std::convert::TryInto; let deadline = time::OffsetDateTime::from_unix_timestamp_nanos( deadline.to_str().ok()?.parse().ok()?, )