From ca410afb5fc271f7865d8fed1f7363172ebc9fee Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sun, 24 Nov 2024 16:06:55 -0500 Subject: [PATCH] chore: satisfy `clippy::assigning_clones` Started firing with Rust 1.78.0, but we can preempt it with our current MSRV. --- wgpu-core/src/command/ray_tracing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/command/ray_tracing.rs b/wgpu-core/src/command/ray_tracing.rs index ec90a5d28e..e527761c4b 100644 --- a/wgpu-core/src/command/ray_tracing.rs +++ b/wgpu-core/src/command/ray_tracing.rs @@ -805,7 +805,7 @@ impl CommandBufferMutable { dependencies, } => { *action.tlas.built_index.write() = Some(*build_index); - *action.tlas.dependencies.write() = dependencies.clone(); + action.tlas.dependencies.write().clone_from(dependencies); } crate::ray_tracing::TlasActionKind::Use => { let tlas_build_index = action.tlas.built_index.read();