Skip to content

Commit c221193

Browse files
committed
[bindings] Mark WithContext log wrapper with no-export
There's not a lot of reason for downstream users to use the `WithContext` wrapper, it mostly exists for our own downstream crates anyway, and dealing with lifetimes in bindings isn't super practical, so simply no-export it.
1 parent 8b5cbfb commit c221193

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/util/logger.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ pub trait Logger {
158158
}
159159

160160
/// Adds relevant context to a [`Record`] before passing it to the wrapped [`Logger`].
161+
///
162+
/// This is not exported to bindings users as lifetimes are problematic and there's little reason
163+
/// for this to be used downstream anyway.
161164
pub struct WithContext<'a, L: Deref> where L::Target: Logger {
162165
/// The logger to delegate to after adding context to the record.
163166
logger: &'a L,

0 commit comments

Comments
 (0)