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

Examples failing #57

Closed
snspinn opened this issue Apr 17, 2024 · 0 comments
Closed

Examples failing #57

snspinn opened this issue Apr 17, 2024 · 0 comments

Comments

@snspinn
Copy link

snspinn commented Apr 17, 2024

Using 'Example 3' from the README give the errors:

error: argument never used
  --> src/main.rs:10:38
   |
10 |     dtt_print!("Formatted time: {}", formatted_time);
   |     ---------------------------------^^^^^^^^^^^^^^-
   |     |                                |
   |     |                                argument never used
   |     formatting specifier missing

error[E0599]: no method named `format` found for struct `DateTime` in the current scope
 --> src/main.rs:9:30
  |
9 |     let formatted_time = now.format("%Y-%m-%d %H:%M:%S");
  |                              ^^^^^^ method not found in `DateTime`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `dtt_testing` (bin "dtt_testing") due to 2 previous errors

Example 4 doesn't work either but I'm not looking for that feature.
A quick look through the code doesn't show the format() in the impl block.

  • Is this planned work that hasn't been completer yet or is this a remove feature?
  • Is there anything I could do help move this along?

Versions

rustc 1.75.0 (82e1608df 2023-12-21)

Cargo.toml

[package]
name = "dtt_testing"
version = "0.1.0"
edition = "2021"

[dependencies]
dtt = "0.0.5"
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

2 participants