Skip TaggedField for now as `enum { A(A) }` is broken in Java
authorMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 16:41:23 +0000 (16:41 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 30 Apr 2021 19:00:50 +0000 (19:00 +0000)
... due to A and A aliasing each other.

lightning-invoice/src/lib.rs

index 9535886d97367cc84f0a3792fbfaa871e1667f4e..cc6049f03603ffd3b907ab7fbe7d41d33c9272ec 100644 (file)
@@ -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 {