From 2295837ea4a4573dedc2650674437e80ec51e9d4 Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Thu, 21 Oct 2021 16:36:31 -0500 Subject: [PATCH] 2021 --- Cargo.toml | 2 +- src/middleware.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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()?, )