projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1904 from TheBlueMatt/2022-12-1825-followups
[rust-lightning]
/
lightning
/
src
/
util
/
ser_macros.rs
diff --git
a/lightning/src/util/ser_macros.rs
b/lightning/src/util/ser_macros.rs
index caed542c19b6806cef2b20e849993b2f4e13dc9c..73c4015726191f5ae5ec8b95eadcf82101bc3af8 100644
(file)
--- a/
lightning/src/util/ser_macros.rs
+++ b/
lightning/src/util/ser_macros.rs
@@
-504,15
+504,15
@@
macro_rules! tlv_stream {
$(($type:expr, $field:ident : $fieldty:tt)),* $(,)*
}) => {
#[derive(Debug)]
$(($type:expr, $field:ident : $fieldty:tt)),* $(,)*
}) => {
#[derive(Debug)]
- pub(
crate
) struct $name {
+ pub(
super
) struct $name {
$(
$(
- $field: Option<tlv_record_type!($fieldty)>,
+
pub(super)
$field: Option<tlv_record_type!($fieldty)>,
)*
}
)*
}
- pub(
crate
) struct $nameref<'a> {
+ pub(
super
) struct $nameref<'a> {
$(
$(
- pub(
crate
) $field: Option<tlv_record_ref_type!($fieldty)>,
+ pub(
super
) $field: Option<tlv_record_ref_type!($fieldty)>,
)*
}
)*
}