Skip to content

fix(rust): address new clippy lint for pointer comparisons#4305

Merged
clason merged 1 commit intotree-sitter:masterfrom
WillLillis:clippy_clips
Mar 25, 2025
Merged

fix(rust): address new clippy lint for pointer comparisons#4305
clason merged 1 commit intotree-sitter:masterfrom
WillLillis:clippy_clips

Conversation

@WillLillis
Copy link
Member

Uses core::ptr::eq rather than the suggested std::ptr::eq to maintain no_std compatibility.

@clason
Copy link
Contributor

clason commented Mar 23, 2025

Prefer fix or refactor over chore.

@WillLillis WillLillis changed the title chore(rust): address new clippy lint for pointer comparisons fix(rust): address new clippy lint for pointer comparisons Mar 23, 2025
@clason clason added the ci:backport release-0.25 Backport label label Mar 23, 2025
@clason
Copy link
Contributor

clason commented Mar 25, 2025

CodeQL complains about two more instances of raw pointer comparison -- do you want to include those here as well?

@clason
Copy link
Contributor

clason commented Mar 25, 2025

Nevermind, probably just needs a rebase to remove those.

EDIT Yup; will merge when CI is green.

@clason clason merged commit dac6300 into tree-sitter:master Mar 25, 2025
12 checks passed
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants