-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Compiling ioctl-rs v0.1.6
error[E0277]: cannot subtract chrono::Duration from Tm
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-1.0.1/src/cookie/jar.rs:224:44
|
224 | cookie.set_expires(time::now() - Duration::days(365));
| ^ no implementation for Tm - chrono::Duration
|
= help: the trait Sub<chrono::Duration> is not implemented for Tm
= help: the following other types implement trait Sub<Rhs>:
<Tm as Subtime::Duration>
Compiling lock_api v0.3.4
error[E0308]: mismatched types
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-1.0.1/src/cookie/mod.rs:736:40
|
736 | self.set_expires(time::now() + twenty_years);
| ^^^^^^^^^^^^ expected time::Duration, found chrono::Duration
|
= note: chrono::Duration and time::Duration have similar names, but are actually distinct types
note: chrono::Duration is defined in crate chrono
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.31/src/duration.rs:55:1
|
55 | pub struct Duration {
| ^^^^^^^^^^^^^^^^^^^
note: time::Duration is defined in crate time
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.1.45/src/duration.rs:45:1
|
45 | pub struct Duration {
| ^^^^^^^^^^^^^^^^^^^
how can I fix this? And what file type are the binaries for macOS in the releases?