Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails #118

Open
tdrone993 opened this issue Dec 8, 2024 · 0 comments
Open

Build Fails #118

tdrone993 opened this issue Dec 8, 2024 · 0 comments

Comments

@tdrone993
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant