Remove unsafe from array_ref! macro#24
Conversation
|
Anyone cleaver regression tests done yet? If it's slower in niche cases, then maybe one should've a |
|
@burdges thanks for the suggestion! I wrote a simple benchmark here: https://github.com/nabilwadih/arrayref/pull/1/files (open to suggestions on anything else you would like to see benchmarked) |
|
It seems removing the unsafe block has quite a big impact in term of size: on a I’ve come to discover this wonderful crate because I was trying to find a way to split an array of |

unsafe is no longer needed here since this is now supported in stable rust, the panic behavior is the same as before since it would panic anyways if the slice index was out of bounds