Skip to content

Commit 0c1b70c

Browse files
committed
Add (C-not exported) tags as required in tuple types
This prepares us for C bindings auto-exporting tuple type fields.
1 parent 8080200 commit 0c1b70c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lightning-invoice/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ pub enum TaggedField {
379379

380380
/// SHA-256 hash
381381
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
382-
pub struct Sha256(pub sha256::Hash);
382+
pub struct Sha256(/// (C-not exported) as the native hash types are not currently mapped
383+
pub sha256::Hash);
383384

384385
/// Description string
385386
///

lightning/src/util/logger.rs

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub trait Logger {
121121
}
122122

123123
/// Wrapper for logging byte slices in hex format.
124+
/// (C-not exported) as fmt can't be used in C
124125
#[doc(hidden)]
125126
pub struct DebugBytes<'a>(pub &'a [u8]);
126127
impl<'a> core::fmt::Display for DebugBytes<'a> {

0 commit comments

Comments
 (0)