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

chore: add allow(clippy::needless_as_bytes) for some Clarity codecs #5678

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

kantai
Copy link
Member

@kantai kantai commented Jan 10, 2025

This just adds allow decorators to some message codec implementations. The as_bytes() invocations are indeed needless, but I think the verbosity is preferable in the codec (so that its very clear to readers that we're concerned with byte length, rather than character length).

This should fix two checks in CI.

@kantai kantai requested a review from a team as a code owner January 10, 2025 15:25
@kantai kantai force-pushed the clippy/warn-asbytes branch from c3e17d0 to 430385e Compare January 10, 2025 15:58
@kantai kantai requested a review from a team as a code owner January 10, 2025 16:08
@kantai kantai force-pushed the clippy/warn-asbytes branch from 7dabc74 to 5b96659 Compare January 10, 2025 16:47
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

👍

@kantai kantai added this pull request to the merge queue Jan 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jan 13, 2025
@kantai kantai added this pull request to the merge queue Jan 14, 2025
Merged via the queue into develop with commit 11823df Jan 14, 2025
172 checks passed
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.

3 participants