fix broken binaries

This commit is contained in:
Max Bradbury 2020-11-06 16:04:38 +00:00
parent de15ccbaa2
commit 4a05021bdd
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ fn main() {
let game = env::args().nth(1).expect(SYNTAX_ERROR);
let output = env::args().nth(2).expect(SYNTAX_ERROR);
let mut game = Game::from(fs::read_to_string(game).unwrap()).unwrap();
let (mut game, _err) = Game::from(fs::read_to_string(game).unwrap()).unwrap();
game.dedupe_tiles();

View File

@ -9,8 +9,8 @@ fn main() {
let output = env::args().nth(3).expect(SYNTAX_ERROR);
// todo allow numerous additional games
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();
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);

View File

@ -8,7 +8,7 @@ fn main() {
let input = env::args().nth(1).expect(SYNTAX_ERROR);
let output = env::args().nth(2).expect(SYNTAX_ERROR);
let game = Game::from(fs::read_to_string(input).unwrap()).unwrap();
let (game, _err) = Game::from(fs::read_to_string(input).unwrap()).unwrap();
fs::write(output, game.to_string()).expect("Failed to write output file");
}