error[E0277]: cannot subtract TimeDelta from Tm
--> /home/chris/.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 - TimeDelta
|
= help: the trait Sub<TimeDelta> is not implemented for Tm
= help: the following other types implement trait Sub<Rhs>:
<Tm as Subtime::Duration>
error[E0308]: mismatched types
--> /home/chris/.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 Duration, found TimeDelta
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try rustc --explain E0277.
error: could not compile actix-http (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile mavlink2rest v0.10.0, intermediate artifacts can be found at /tmp.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
error[E0277]: cannot subtract
TimeDeltafromTm--> /home/chris/.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 - TimeDelta|
= help: the trait
Sub<TimeDelta>is not implemented forTm= help: the following other types implement trait
Sub<Rhs>:<Tm as Subtime::Duration>
error[E0308]: mismatched types
--> /home/chris/.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
Duration, foundTimeDeltaSome errors have detailed explanations: E0277, E0308.
For more information about an error, try
rustc --explain E0277.error: could not compile
actix-http(lib) due to 2 previous errorswarning: build failed, waiting for other jobs to finish...
error: failed to compile
mavlink2rest v0.10.0, intermediate artifacts can be found at/tmp.To reuse those artifacts with a future compilation, set the environment variable
CARGO_TARGET_DIRto that path.