Use extend_from_slice instead of copy_from_slice

This commit is contained in:
David committed 2019-08-05 07:40:06 +02:00
1 parent efcf0e94cb
commit 074b1d7dee
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ impl BindGroupEntry {
});
//TODO: validate the count of dynamic offsets to match the layout
self.dynamic_offsets.clear();
self.dynamic_offsets.copy_from_slice(offsets);
self.dynamic_offsets.extend_from_slice(offsets);
Provision::Changed {
was_compatible,