Skip to content

Commit cdbb71c

Browse files
authored
Point struct usize->i32 (#9)
Use same integer type on move_to and get_position to improve ease of use
1 parent 8ffe2bd commit cdbb71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::fmt;
33
pub mod keys;
44

55
pub struct Point {
6-
pub x: usize,
7-
pub y: usize,
6+
pub x: i32,
7+
pub y: i32,
88
}
99

1010
impl fmt::Debug for Point {

0 commit comments

Comments
 (0)