mrDIMAS / rusty-shooter

[suspended] 3d shooter written in Rust using rg3d
MIT License
279 stars 25 forks source link

No method named `visit` found for struct `HashMap` in the current scope #18

Closed PavelZX closed 2 years ago

PavelZX commented 2 years ago

cargo run --release Compiling rusty-shooter v0.13.0 (/home/pavel/rusty-shooter) error[E0599]: no method named visit found for struct HashMap in the current scope --> src/leader_board.rs:145:29 | 145 | self.personal_score.visit("PersonalScore", visitor)?; | ^^^^^ method not found in HashMap<std::string::String, PersonalScore>

error[E0599]: no method named visit found for struct HashMap in the current scope --> src/leader_board.rs:146:25 | 146 | self.team_score.visit("TeamScore", visitor)?; | ^^^^^ method not found in HashMap<Team, u32>

For more information about this error, try rustc --explain E0599. error: could not compile rusty-shooter due to 2 previous errors

PavelZX commented 2 years ago

The demo functionality is not fully implemented. Therefore, to see the demo in action, you need to comment out the lines 145 and 146, on: src/leader_board.rs