open_file takes value of arg
This commit is contained in:
		
							parent
							
								
									37f8df35ea
								
							
						
					
					
						commit
						0966268c85
					
				@ -125,7 +125,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
 | 
				
			|||||||
        .get_matches();
 | 
					        .get_matches();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let mut robot_pool: Vec<Robot> = Vec::new();
 | 
					    let mut robot_pool: Vec<Robot> = Vec::new();
 | 
				
			||||||
    let raw_conf = open_file("two_robots.txt")?;
 | 
					    let raw_conf = open_file(matches.value_of("file").unwrap())?;
 | 
				
			||||||
    Ok(())
 | 
					    Ok(())
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user