Closed tareknaser closed 11 months ago
Name | Link |
---|---|
Latest commit | 44b3f453dac07ade5476abf480515ee504b612d6 |
Latest deploy log | https://app.netlify.com/sites/coffee-docs/deploys/64d1b9206c81620008ff7dd0 |
The solution is inside the error
coffee_1 | Compiling tests v0.1.0 (/workdir/tests)
coffee_1 | error[E0283]: type annotations needed
coffee_1 | --> tests/src/logger.rs:42:21
coffee_1 | |
coffee_1 | 42 | DateTime::from(SystemTime::now())
coffee_1 | | ^^^^^^^^^^^^^^ cannot infer type for struct `chrono::DateTime<_>`
coffee_1 | |
coffee_1 | = note: multiple `impl`s satisfying `chrono::DateTime<_>: From<SystemTime>` found in the `chrono` crate:
coffee_1 | - impl From<SystemTime> for chrono::DateTime<Local>;
coffee_1 | - impl From<SystemTime> for chrono::DateTime<Utc>;
coffee_1 |
coffee_1 | For more information about this error, try `rustc --explain E0283`.
coffee_1 | error: could not compile `tests` (lib test) due to previous error
coffee_1 | make: *** [Makefile:35: integration] Error 101
But this depends from your code, so I think you should just play a little bit of what type SystemTime::now()
return
Fixes #186