From: Matt Corallo Date: Fri, 30 Apr 2021 23:09:05 +0000 (+0000) Subject: Resolve issues with Str introduced when it became ownable X-Git-Tag: v0.0.98~9^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=db0ed2ef02f28a8b393eb3640959587bfe1a7e52;hp=db0ed2ef02f28a8b393eb3640959587bfe1a7e52;p=ldk-c-bindings Resolve issues with Str introduced when it became ownable When converting from a Str to an &str, we previously took ownership of the Str, copied the pointer to its characters to an &str and returned the &str. This made the returned bytes always unreadable. Further, there is now no reason to use Vec_u8Z for owned Strs, so we swap for Str as well. ---