You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have an extension function for unindent(). I'm using it in tests and use unindent() as postfix instead of function call improve test readability:
It is better than surround string by unindent() function.
Just I'm not sure if is better to have two different traits for unindent and unindent_bytes or use just one for both. In the last case I need to write every single implementation (&str, String, &[u8]...) but in the first case I can do just two impl for AsRef<str> and AsRef<[u8]>.
If it is ok for you I can implement it...
The text was updated successfully, but these errors were encountered:
It would be great to have an extension function for
unindent()
. I'm using it in tests and useunindent()
as postfix instead of function call improve test readability:It is better than surround string by
unindent()
function.Just I'm not sure if is better to have two different traits for
unindent
andunindent_bytes
or use just one for both. In the last case I need to write every single implementation (&str
,String
,&[u8]
...) but in the first case I can do just twoimpl
forAsRef<str>
andAsRef<[u8]>
.If it is ok for you I can implement it...
The text was updated successfully, but these errors were encountered: