mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-08-27 09:51:29 -04:00
aa55752df2
Don't leak the function that is called on drop It probably wasn't causing problems anyway, but still, a `// this leaks, please don't pass anything that owns memory` is not sustainable. I could implement a version which does not require `Option`, but it would require `unsafe`, at which point it's probably not worth it.