You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
The compilation of actix-http fails on latest rust version (macos, intel):
error[E0277]: cannot subtract `TimeDelta` from `Tm`
--> /Users/valentin/.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 Sub<time::Duration>>
<Tm as Sub>
error[E0308]: mismatched types
--> /Users/valentin/.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`
Actix web verison: 2.0.0
Actix http version: 1.0.1
Hello,
The compilation of actix-http fails on latest rust version (macos, intel):
Actix web verison: 2.0.0
Actix http version: 1.0.1
Tested versions:
Rust: rustc 1.70.0 (90c541806 2023-05-31)
Rust: rustc 1.76.0 (07dca489a 2024-02-04)
Rust: rustc 1.78.0-nightly (381d69953 2024-02-24)
Environnement:
MacOS: 13.6.4 (22G513), Intel
Thanks for checking 🙏
The text was updated successfully, but these errors were encountered: