Skip to content

Build Fails #118

Description

@tdrone993

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions