replace agent clone with explicit move

This commit is contained in:
mos 2024-10-13 13:45:21 +02:00
parent 485807aefb
commit 816a3cbc3a
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ pub fn run(config: Config, rle: Option<String>) -> Result<()> {
println!("gen {} score {}", pop.gen, pop.life[0].score); println!("gen {} score {}", pop.gen, pop.life[0].score);
if pop.life[0].goal == Solution::Win { if pop.life[0].goal == Solution::Win {
return Ok(Some(pop.life[0].clone())); return Ok(Some(pop.life.remove(0)));
} }
} }