add token

This commit is contained in:
Martin HART 2020-10-28 16:42:36 +01:00
parent 9d0b96b4d7
commit e4001c99c7
1 changed files with 4 additions and 5 deletions

View File

@ -28,11 +28,10 @@ fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::Wor
None => return Err("Could not read the first line of the config file !"), None => return Err("Could not read the first line of the config file !"),
Some(raw) => raw, Some(raw) => raw,
}; };
/* let mut tokens = raw_line.split_whitespace();
let raw_token = raw_line.split_whitespace(); let token1 = tokens.next();
let token1 = raw_token.next(); let token2 = tokens.next();
let token2 = raw_token.next(); println!("{}, {}", token1.unwrap(), token2.unwrap());
*/
Ok(world::World { x: 5, y: 5 }) Ok(world::World { x: 5, y: 5 })
} }