I am getting these compiler errors, do you have an idea what i am doing wrong?
error[E0277]: `Attribute` doesn't implement `Debug`
--> D:\CSGO\ML\demoparser\src\pyi-macros\src\pyi.rs:126:21
|
126 | format!("{:?}", attr).contains(value)
| ^^^^ `Attribute` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
= help: the trait `Debug` is not implemented for `Attribute`, which is required by `&[Attribute]: Debug`
= help: the following other types implement trait `Debug`:
[T; N]
[T]
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Attribute` doesn't implement `Debug`
--> D:\CSGO\ML\demoparser\src\pyi-macros\src\pyi.rs:163:49
|
163 | let is_static = format!("{:?}", &method.attrs).contains("staticmethod");
| ^^^^^^^^^^^^^ `Attribute` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
= help: the trait `Debug` is not implemented for `Attribute`, which is required by `&Vec<Attribute>: Debug`
= help: the trait `Debug` is implemented for `Vec<T, A>`
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
Compiling arrow2 v0.14.2
For more information about this error, try `rustc --explain E0277`.
error: could not compile `pyi_macros` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Thanks, @JanEricNitschke .
The code posted was copied from another repo, and I just assumed it would work. I've added the "extra-traits" feature which fixed it.
I am getting these compiler errors, do you have an idea what i am doing wrong?