From 2242b621fd5528346d6637fc49668c25d2f44c5f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 29 Apr 2021 16:41:23 +0000 Subject: [PATCH] Skip TaggedField for now as `enum { A(A) }` is broken in Java ... due to A and A aliasing each other. --- lightning-invoice/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 9535886d..cc6049f0 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 { -- 2.30.2