chore: satisfy clippy::assigning_clones

Started firing with Rust 1.78.0, but we can preempt it with our current
MSRV.
This commit is contained in:
Erich Gubler
2024-11-24 16:06:55 -05:00
parent c22c062b54
commit ca410afb5f

View File

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