3 ms·
But again, the function cannot fail. It could return a Result<Vec2, Infallible>, I guess, but then you're just pushing the unwrap to caller without any need to.
by Macha 4y ago
But again, the function cannot fail. It could return a Result<Vec2, Infallible>, I guess, but then you're just pushing the unwrap to caller without any need to.
- rowanG077 4y agoThat's the entire point of the OP. That it can't fail so you might as well call unwrap.