Closed Nemo157 closed 11 months ago
I was doing a quick audit of my dependencies and noticed this unnecessary unsafe usage. To make an array of !Copy but const-constructible types you just need to create a const value to use as the prototype in the array literal.
unsafe
!Copy
const
Looks great. Always good to get rid of some unsafe. :) Thank you.
I was doing a quick audit of my dependencies and noticed this unnecessary
unsafe
usage. To make an array of!Copy
but const-constructible types you just need to create aconst
value to use as the prototype in the array literal.