We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d308be2 commit b57f065Copy full SHA for b57f065
examples/dyn_sys_data.rs
@@ -61,10 +61,14 @@ impl<'a> System<'a> for DynamicSystem {
61
.writes
62
.iter_mut()
63
.map(|resource| {
64
- meta.get_mut(&mut **resource).expect(
+ // For some reason this needs a type ascription, otherwise Rust will think it's
65
+ // a `&mut (Reflaction + '_)` (as opposed to `&mut (Reflection + 'static)`. (Note this
66
+ // isn't needed in newer rust version but fails on the MSRV of 1.59.0).
67
+ let res: &mut dyn Reflection = meta.get_mut(&mut **resource).expect(
68
"Not registered in meta \
69
table",
- )
70
+ );
71
+ res
72
})
73
.collect();
74
0 commit comments