Merge pull request #3203 from lexe-app/pr/description-as-inner

lightning-invoice: Add `Description::as_inner`
This commit is contained in:
Elias Rohrer 2024-07-24 09:55:49 +02:00 committed by GitHub
commit a76ec06d23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {