Replace `for` loop with call to `copy` for slice

Use copy for copying slices instead of manually copying the elements in a loop.

Merge request reports

Loading