Skip to content

Commit a76ec06

Browse files
authored
Merge pull request #3203 from lexe-app/pr/description-as-inner
lightning-invoice: Add `Description::as_inner`
2 parents 951174a + 2a8ab6f commit a76ec06

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)