remove unnecessary clone()
This commit is contained in:
parent
df541e85a9
commit
96d1169eb9
|
@ -361,7 +361,7 @@ pub fn find_closest_target<TargetSpecifier>(
|
|||
let distance = trans.translation.distance(camera_transform.translation);
|
||||
if distance < closest_distance {
|
||||
closest_distance = distance;
|
||||
closest_entity = Some(entity.clone());
|
||||
closest_entity = Some(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue