remove unnecessary clone()

This commit is contained in:
yuni 2024-04-05 19:59:53 +02:00
parent df541e85a9
commit 96d1169eb9

View file

@ -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);
}
}
}