Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix impl_partial_eq_cow to apply .as_bytes() and &** to the correct arguments #203

Merged

Conversation

joshtriplett
Copy link
Contributor

impl_partial_eq_cow, in its second trail impl, had the arguments the
wrong way around, applying &** to the ByteStr argument and
.as_bytes() to the Cow.

Fix it to use the same structure as impl_partial_eq.

…rect arguments

`impl_partial_eq_cow`, in its second trail impl, had the arguments the
wrong way around, applying `&**` to the ByteStr argument and
`.as_bytes()` to the `Cow`.

Fix it to use the same structure as `impl_partial_eq`.
Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BurntSushi BurntSushi merged commit 1ade797 into BurntSushi:master Jan 2, 2025
8 checks passed
@BurntSushi
Copy link
Owner

This is on crates.io in bstr 1.11.3.

@joshtriplett joshtriplett deleted the turn-that-cow-upside-down branch January 2, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants