Skip to content

Rust Renderer: add clippy ignore for arithmetic#514

Merged
lorisleiva merged 2 commits intocodama-idl:mainfrom
buffalojoec:clippy-arithmetic
Mar 18, 2025
Merged

Rust Renderer: add clippy ignore for arithmetic#514
lorisleiva merged 2 commits intocodama-idl:mainfrom
buffalojoec:clippy-arithmetic

Conversation

@buffalojoec
Copy link
Copy Markdown
Contributor

Problem

If you use a Codama-generated client in a library, and you try to lint that library with a +nightly toolchain, it will throw an error. Clippy looks through the dependencies as well, and it will barf on these "arithmetic side effects" issues.

Summary of Changes

Simply add #[allow(clippy::arithmetic_side_effects)] to the list of preexisting clippy ignores on these methods.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 18, 2025

🦋 Changeset detected

Latest commit: 3539f17

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@codama/renderers-rust Patch
@codama/cli Patch
@codama/renderers Patch
codama Patch
@codama/errors Patch
@codama/node-types Patch
@codama/nodes Patch
@codama/validators Patch
@codama/visitors-core Patch
@codama/visitors Patch
@codama/dynamic-codecs Patch
@codama/dynamic-parsers Patch
@codama/nodes-from-anchor Patch
@codama/renderers-core Patch
@codama/renderers-js-umi Patch
@codama/renderers-js Patch
@codama/renderers-vixen-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@buffalojoec buffalojoec requested a review from lorisleiva March 18, 2025 12:22
Copy link
Copy Markdown
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

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

Thanks!

@lorisleiva lorisleiva merged commit d5b01d6 into codama-idl:main Mar 18, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Mar 18, 2025
Copy link
Copy Markdown

@agca52 agca52 left a comment

Choose a reason for hiding this comment

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

Thank you

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