mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-10 06:25:00 +00:00
2021
This commit is contained in:
parent
2b490b7465
commit
2295837ea4
2 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,7 @@ authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://git.asonix.dog/asonix/pict-rs"
|
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
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -113,7 +113,6 @@ where
|
||||||
.headers()
|
.headers()
|
||||||
.get("X-Request-Deadline")
|
.get("X-Request-Deadline")
|
||||||
.and_then(|deadline| {
|
.and_then(|deadline| {
|
||||||
use std::convert::TryInto;
|
|
||||||
let deadline = time::OffsetDateTime::from_unix_timestamp_nanos(
|
let deadline = time::OffsetDateTime::from_unix_timestamp_nanos(
|
||||||
deadline.to_str().ok()?.parse().ok()?,
|
deadline.to_str().ok()?.parse().ok()?,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue