Update args on supertraits of supertraits when cloning trait impls
authorMatt Corallo <git@bluematt.me>
Sun, 8 Oct 2023 05:53:25 +0000 (05:53 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 8 Oct 2023 06:53:01 +0000 (06:53 +0000)
commit6c7a4f5ecc7b225d480d5b5dc021af0a59430ad4
tree6b2f9be030358c6979da77a98269c8aa714ac551
parent10d1bac4fa3a26f6df24523e3a226b9ff01647f5
Update args on supertraits of supertraits when cloning trait impls

When cloning implementations of traits from in-crate structs, we
forgot to update the arguments for supertraits of supertraits,
causing methods on that trait to be called against the previous
struct, not the cloned one.

This was ultimately identified downstream in the Java bindings,
fixes https://github.com/lightningdevkit/ldk-garbagecollected/issues/138
c-bindings-gen/src/main.rs