replace agent clone with explicit move
This commit is contained in:
parent
485807aefb
commit
816a3cbc3a
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue