From 0c1b70c16193acee843d823c74d2839b6cea32f6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 1 Nov 2021 22:01:57 +0000 Subject: [PATCH] Add `(C-not exported)` tags as required in tuple types This prepares us for C bindings auto-exporting tuple type fields. --- lightning-invoice/src/lib.rs | 3 ++- lightning/src/util/logger.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 3492b74f4..04ba08bd8 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -379,7 +379,8 @@ pub enum TaggedField { /// SHA-256 hash #[derive(Clone, Debug, Hash, Eq, PartialEq)] -pub struct Sha256(pub sha256::Hash); +pub struct Sha256(/// (C-not exported) as the native hash types are not currently mapped + pub sha256::Hash); /// Description string /// diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs index 01b024065..2717effb2 100644 --- a/lightning/src/util/logger.rs +++ b/lightning/src/util/logger.rs @@ -121,6 +121,7 @@ pub trait Logger { } /// Wrapper for logging byte slices in hex format. +/// (C-not exported) as fmt can't be used in C #[doc(hidden)] pub struct DebugBytes<'a>(pub &'a [u8]); impl<'a> core::fmt::Display for DebugBytes<'a> { -- 2.39.5