Skip to content

Commit

Permalink
Merge pull request lightningdevkit#3203 from lexe-app/pr/description-…
Browse files Browse the repository at this point in the history
…as-inner

lightning-invoice: Add `Description::as_inner`
  • Loading branch information
tnull authored Jul 24, 2024
2 parents 951174a + 2a8ab6f commit a76ec06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lightning-invoice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,11 @@ impl Description {
pub fn into_inner(self) -> UntrustedString {
self.0
}

/// Get a reference to the underlying description [`UntrustedString`]
pub fn as_inner(&self) -> &UntrustedString {
&self.0
}
}

impl Display for Description {
Expand Down

0 comments on commit a76ec06

Please sign in to comment.