Hey, I'm having some troubles with #[derive(SystemParam)]
#[derive(SystemParam)]
pub struct InputResources<'w, 's> {
pub keyboard_input: Res<'w, Input<KeyCode>>,
pub egui_input: ResMut<'w, EguiRenderInputContainer>,
#[system_param(ignore)]
_marker: PhantomData<&'s ()>,
}
It complains that the lifetime must not live long enough
error: lifetime may not live long enough
--> crates\kamel-egui\src\systems.rs:56:10
|
56 | #[derive(SystemParam)]
| ^^^^^^^^^^^
| |
| lifetime `'s` defined here
| lifetime `'s2` defined here
| associated function was supposed to return data with lifetime `'s2` but it is returning data with lifetime `'s`
|
= help: consider adding the following bound: `'s: 's2`
= note: this error originates in the derive macro `SystemParam` (in Nightly builds, run with -Z macro-backtrace for more info)
I don't get where the lifetime s2 comes from.... Any ideas?