Hey there! I'm looking to obtain ownership over the String contained within ErrorDescription, but the only way I can see that being possible is cloning the string (via its Display impl), which isn't great since I already have ownership of the ErrorDescription.
Is there another way to do it that I'm missing? I was hoping for e.g. ErrorDescription::into_inner, or for the field to be pub
I can PR this if it sounds like something you'd consider adding to the library.
Hey there! I'm looking to obtain ownership over the
String
contained withinErrorDescription
, but the only way I can see that being possible is cloning the string (via itsDisplay
impl), which isn't great since I already have ownership of theErrorDescription
.Is there another way to do it that I'm missing? I was hoping for e.g.
ErrorDescription::into_inner
, or for the field to bepub
I can PR this if it sounds like something you'd consider adding to the library.