From 1abffc4dddabbd07f1d076917d003160aa74266d Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Tue, 11 Jun 2024 23:25:02 -0700 Subject: [PATCH] clippy --- crates/bevy_picking_highlight/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_picking_highlight/src/lib.rs b/crates/bevy_picking_highlight/src/lib.rs index c9a10f6e..ee8b6d94 100644 --- a/crates/bevy_picking_highlight/src/lib.rs +++ b/crates/bevy_picking_highlight/src/lib.rs @@ -293,7 +293,7 @@ pub fn get_initial_highlight_asset( ) { for (entity, material) in entity_asset_query.iter() { match highlighting_query.get_mut(entity) { - Ok(Some(mut highlighting)) => highlighting.initial = material.to_owned(), + Ok(Some(mut highlighting)) => material.clone_into(&mut highlighting.initial), _ => { commands.entity(entity).try_insert(InitialHighlight { initial: material.to_owned(),