Advanced Hands-on Rust (B2.0): Argument mismatch (pp118 - 121)

@herbert

on p118 a method was defined as:

pub fn get_handle<T>(&self, index: &str, assets: &LoadedAssets) -> Option<Handle<T>>

however on p121 in the main.rs file for flappy, in the setup function, this method is only passed one parameter. The same problem exists for the build_wall function on the same page. This also affects the function move_wall as it calls build_wall. I’m not sure if this is the original syntax left over from Beta 1.0.

The spawn_image macro does take the second parameter into account, so perhaps that’s not a major issue.