Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadon committed Oct 7, 2020
1 parent 2cadde9 commit 0981b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const N_CHAR: i32 = 'n' as i32;
const Y_CHAR: i32 = 'y' as i32;
const D_CHAR: i32 = 'd' as i32;

use crate::primitives::{
get_dims, get_tl, Coord, Direction, Display, Symbol,
};
use crate::primitives::{get_dims, get_tl, Coord, Direction, Display, Symbol};
use crate::screen::Screen;
use crate::shape::Shape;

Expand Down Expand Up @@ -119,7 +117,6 @@ impl Game {
&& self.screen.is_space(coord.row, coord.col + 1)
});
if occupies_empty_space {

} else if self.space_available(test, Direction::Left) {
self.move_shape(Direction::Left);
} else if self.space_available(test, Direction::Right) {
Expand Down
4 changes: 2 additions & 2 deletions src/shape.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use rand::prelude::random;

use crate::primitives::{
get_dims, get_tl, num_to_shape, shape_coords, shape_to_num, Coord, Display,
ShapeType, Symbol, BLOCK_HORIZ_MULT,
get_dims, get_tl, num_to_shape, shape_coords, shape_to_num, Coord, Display, ShapeType, Symbol,
BLOCK_HORIZ_MULT,
};

#[derive(Debug, Clone, Copy)]
Expand Down

0 comments on commit 0981b98

Please sign in to comment.