Hands-on Rust: (pg. 98) Camera addition to Struct elided

The exercise of adding the Camera construct IS left as an exercise to the reader, and perhaps it can be left to clippy-- but! the addition of the Camera to the State struct is not mentioned, even in passing.

You also need to update your state’s new function to initialize the camera:

Not sure how to word it in a way that keeps the colon. For your consideration.

1 Like

Good catch, thank you! I’ve logged the problem and I’ll have the appropriate code inserted into the next beta.

1 Like