youknowone/apple-sys

Build Failure: `IORPCMessage` doesn't implement `Debug`

hacknus opened this issue · 1 comments

When compiling apple-sys v0.1.2 as a dependancy with stable-aarch64-apple-darwin 1.67.1 on Apple Silicon M2 Pro I get the following error:

error[E0277]: `IORPCMessage` doesn't implement `Debug`
     --> /Users/linus/CLionProjects/coconut-ctrl/target/release/build/apple-sys-9c941ba7ed467999/out/IOKit.rs:55699:5
      |
55697 | #[derive(Debug)]
      |          ----- in this derive macro expansion
55698 | pub struct IORPCMessageErrorReturnContent {
55699 |     pub hdr: IORPCMessage,
      |     ^^^^^^^^^^^^^^^^^^^^^ `IORPCMessage` cannot be formatted using `{:?}`
      |
      = help: the trait `Debug` is not implemented for `IORPCMessage`
      = note: add `#[derive(Debug)]` to `IORPCMessage` or manually `impl Debug for IORPCMessage`
      = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `IORPCMessage` with `#[derive(Debug)]`
      |
55687 | #[derive(Debug)]
      |

solved by updating to 0.2.0.