compile error - server

error[E0277]: `PanelItem` doesn't implement `std::fmt::Debug`
--> src/wayland/xdg_shell.rs:209:2
|
205 | #[derive(Debug)]
| ----- in this derive macro expansion
...
209 | panel_item: Weak<PanelItem>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PanelItem` cannot be formatted using `{:?}`
|
= help: the trait `std::fmt::Debug` is not implemented for `PanelItem`
= note: add `#[derive(Debug)]` to `PanelItem` or manually `impl std::fmt::Debug for PanelItem`
= help: the trait `std::fmt::Debug` is implemented for `std::sync::Weak<T>`
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `stardust-xr-server` due to previous error
error[E0277]: `PanelItem` doesn't implement `std::fmt::Debug`
--> src/wayland/xdg_shell.rs:209:2
|
205 | #[derive(Debug)]
| ----- in this derive macro expansion
...
209 | panel_item: Weak<PanelItem>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PanelItem` cannot be formatted using `{:?}`
|
= help: the trait `std::fmt::Debug` is not implemented for `PanelItem`
= note: add `#[derive(Debug)]` to `PanelItem` or manually `impl std::fmt::Debug for PanelItem`
= help: the trait `std::fmt::Debug` is implemented for `std::sync::Weak<T>`
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `stardust-xr-server` due to previous error
6 Replies
Nova
Nova2y ago
idk how my compiler didn't catch that
Saphira Kai
Saphira Kai2y ago
yeah that's weird lol
Nova
Nova2y ago
uh, just remove debug? :p we can't debug those structs anyway
Saphira Kai
Saphira Kai2y ago
okay XD
Nova
Nova2y ago
i'm gonna be playing neos for a bit (few hours lol)
Saphira Kai
Saphira Kai2y ago
hahaha, valid alright i removed it and it works, pushed
Want results from more Discord servers?
Add your server