Skip to content

Index trait not implemented for BString #190

Open
@eddybruel

Description

When trying to use bstr in my own project, I noticed that slicing a BString yields a &[u8], while slicing a BStr yields a &BStr (which is what I'd expect).

Upon closer inspection, it looks like the Index trait is implemented for BStr, but not for BString, which is not what I'd expect. I'm not sure if this was a deliberate design decision or just an oversight, so I just wanted to bring this to your attention.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    breaking changeRequires a semver incompatible release.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions