This commit is contained in:
Timon_Post 2019-05-04 13:46:36 +02:00
parent ee406d47fa
commit 81a0c85f6e

View File

@ -44,8 +44,7 @@ pub fn pos_raw() -> io::Result<(u16, u16)> {
} }
// Read rows and cols through a ad-hoc integer parsing function // Read rows and cols through a ad-hoc integer parsing function
let read_num: fn() -> Result<(i32, char) -> Result<(i32, char), Error> = let read_num: fn() -> Result<(i32, char), Error> = || -> Result<(i32, char), Error> {
|| -> Result<(i32, char), Error> {
let mut num = 0; let mut num = 0;
let mut c: char; let mut c: char;