add token

This commit is contained in:
Martin HART 2020-10-28 16:42:36 +01:00
parent 9d0b96b4d7
commit e4001c99c7

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 !"),
Some(raw) => raw,
};
/*
let raw_token = raw_line.split_whitespace();
let token1 = raw_token.next();
let token2 = raw_token.next();
*/
let mut tokens = raw_line.split_whitespace();
let token1 = tokens.next();
let token2 = tokens.next();
println!("{}, {}", token1.unwrap(), token2.unwrap());
Ok(world::World { x: 5, y: 5 })
}