simplify agents initialization

This commit is contained in:
mos 2024-11-28 12:31:20 +01:00
parent c71e0e16cf
commit c95bd6b5c5
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ pub fn run(config: Config, rle: Option<String>) -> Result<()> {
}
.map_err(Error::Read)?;
let mut agents: Vec<Agent> = Vec::new();
let mut agents = Vec::<Agent>::new();
for _ in 0..config.gen_depth {
let mut pop = Population::new(&config, map.clone());