no need to take ownership of additional game for merge

This commit is contained in:
2020-09-25 16:37:55 +01:00
parent 91883079a3
commit 0763d15b0e
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ fn main() {
let mut game_a = Game::from(fs::read_to_string(game_a).unwrap()).unwrap();
let game_b = Game::from(fs::read_to_string(game_b).unwrap()).unwrap();
game_a.merge(game_b);
game_a.merge(&game_b);
fs::write(output, game_a.to_string())
.expect("Failed to write output file");