Closed KodrAus closed 1 year ago
These methods were returning a shorter-than-necessary lifetime. If we're able to get a borrowed str then we're guaranteed to have a &'v str, so should use the longer lifetime in the signature.
str
&'v str
These methods were returning a shorter-than-necessary lifetime. If we're able to get a borrowed
str
then we're guaranteed to have a&'v str
, so should use the longer lifetime in the signature.