From: Matt Corallo Date: Wed, 22 Sep 2021 02:46:10 +0000 (+0000) Subject: Avoid mapping optionals as owned pointers X-Git-Tag: v0.0.101.1~1^2~13 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=c4cf32b1fa04571d4a7fdadca4554c6a6d045119;hp=c4cf32b1fa04571d4a7fdadca4554c6a6d045119;p=ldk-c-bindings Avoid mapping optionals as owned pointers Using an owned pointer to map an optional turned out to be quite annoying to avoid downstream memory issues. Instead, we use the much more explicit `COption_TypeZ` enums everywhere. This also fixes Option-al mapping of enums. ---