Skip to content

Commit 2a8ab6f

Browse files
committed
lightning-invoice: Add Description::as_inner
1 parent 951174a commit 2a8ab6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning-invoice/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,11 @@ impl Description {
15261526
pub fn into_inner(self) -> UntrustedString {
15271527
self.0
15281528
}
1529+
1530+
/// Get a reference to the underlying description [`UntrustedString`]
1531+
pub fn as_inner(&self) -> &UntrustedString {
1532+
&self.0
1533+
}
15291534
}
15301535

15311536
impl Display for Description {

0 commit comments

Comments
 (0)