From 96d1169eb99aff9f8b8a40bd9a4b8e3613690a7b Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 5 Apr 2024 19:59:53 +0200 Subject: [PATCH] remove unnecessary clone() --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index f218476..ae48570 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -361,7 +361,7 @@ pub fn find_closest_target( let distance = trans.translation.distance(camera_transform.translation); if distance < closest_distance { closest_distance = distance; - closest_entity = Some(entity.clone()); + closest_entity = Some(entity); } } }