fix broken binaries
This commit is contained in:
parent
de15ccbaa2
commit
4a05021bdd
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue