cogciprocate / ocl

OpenCL for Rust
Other
721 stars 75 forks source link

panic safety fix #195

Closed JOE1994 closed 5 months ago

JOE1994 commented 3 years ago

guard against potential panic within user-provided into().

ManuallyDrop<T> is a zero-cost wrapper, so hopefully there shouldn't be a performance overhead due to the fix.

Fixes #194

Thank you for reviewing this PR :+1: