Skip to content

[red knot] Use memmem::find instead of custom version#13750

Merged
sharkdp merged 2 commits intomainfrom
david/infer-bytes-literal-comparisons-follow-up
Oct 14, 2024
Merged

[red knot] Use memmem::find instead of custom version#13750
sharkdp merged 2 commits intomainfrom
david/infer-bytes-literal-comparisons-follow-up

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Oct 14, 2024

Summary

This is a follow-up on #13746:

  • Use memmem::find instead of rolling our own inferior version.
  • Avoid x.as_ref() calls using &**x

Test Plan

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Oct 14, 2024
Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Thx

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@sharkdp sharkdp merged commit 04b636c into main Oct 14, 2024
@sharkdp sharkdp deleted the david/infer-bytes-literal-comparisons-follow-up branch October 14, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants