From: Matt Corallo Date: Thu, 29 Apr 2021 16:41:23 +0000 (+0000) Subject: Skip TaggedField for now as `enum { A(A) }` is broken in Java X-Git-Tag: v0.0.14~3^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2242b621fd5528346d6637fc49668c25d2f44c5f;p=rust-lightning Skip TaggedField for now as `enum { A(A) }` is broken in Java ... due to A and A aliasing each other. --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 9535886d9..cc6049f03 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -332,6 +332,8 @@ pub enum Currency { } /// Tagged field which may have an unknown tag +/// +/// (C-not exported) as we don't currently support TaggedField #[derive(Eq, PartialEq, Debug, Clone)] pub enum RawTaggedField { /// Parsed tagged field with known tag @@ -343,6 +345,9 @@ pub enum RawTaggedField { /// Tagged field with known tag /// /// For descriptions of the enum values please refer to the enclosed type's docs. +/// +/// (C-not exported) As we don't yet support enum variants with the same name the struct contained +/// in the variant. #[allow(missing_docs)] #[derive(Eq, PartialEq, Debug, Clone)] pub enum TaggedField {