Skip to content

SliceExt not implemented for &[u8] #23446

@mahkoh

Description

@mahkoh

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].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions