Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie committed Jun 12, 2024
1 parent 1c2b414 commit 1abffc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_picking_highlight/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub fn get_initial_highlight_asset<T: 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(),
Expand Down

0 comments on commit 1abffc4

Please sign in to comment.