From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Mon, 18 Apr 2022 12:53:05 +0000 (+0000) Subject: Merge pull request #71 from TheBlueMatt/main X-Git-Tag: v0.0.108.0~5 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=8b697a686e0ddf11c1e57a68f595deb9329ab16b;hp=d4f7ca4bd4e16b9311b4d6bcd518e6bac2778fe4 Merge pull request #71 from TheBlueMatt/main Make `Str`'s `clone` always clone the underlying bytes --- diff --git a/lightning-c-bindings/src/c_types/mod.rs b/lightning-c-bindings/src/c_types/mod.rs index 1e88f05..12c7088 100644 --- a/lightning-c-bindings/src/c_types/mod.rs +++ b/lightning-c-bindings/src/c_types/mod.rs @@ -569,7 +569,7 @@ impl Into for String { } impl Clone for Str { fn clone(&self) -> Self { - self.into_str().clone().into() + String::from(self.into_str()).into() } }