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
Since SliceExt::split conflicts with BufRead::split, you have to use SliceExt::split(var, cond). But this doesn't give you auto-deref and if var == &&[u8] you get the confusing message that SliceExt is not implemented for &[u8] and you have to first notice that var is &&[u8] and then remember that SliceExt is implemented on [u8] and not &[u8].
The text was updated successfully, but these errors were encountered:
The purpose of the SliceExt trait is to provide methods on &[u8], not to provide the ability to abstract over them. Now that we have moved to inherent methods this is even more apparent. As a result this issue is also somewhat moot, so closing.
Since SliceExt::split conflicts with BufRead::split, you have to use SliceExt::split(var, cond). But this doesn't give you auto-deref and if var == &&[u8] you get the confusing message that SliceExt is not implemented for &[u8] and you have to first notice that var is &&[u8] and then remember that SliceExt is implemented on [u8] and not &[u8].
The text was updated successfully, but these errors were encountered: