add token
This commit is contained in:
parent
9d0b96b4d7
commit
e4001c99c7
@ -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 })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user