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(lints): Use expect over allow #4402

Merged
merged 10 commits into from
Dec 16, 2024

Conversation

DaughterOfMars
Copy link
Contributor

@DaughterOfMars DaughterOfMars commented Dec 9, 2024

Description of change

Use expect over allow, remove unnecessary allows, and fix some that can be easily fixed.

1.81 stabilizes a new lint level, expect, which allows explicitly noting that a particular lint should occur, and warning if it doesn't. The intended use case for this is temporarily silencing a lint, whether due to lint implementation bugs or ongoing refactoring, while wanting to know when the lint is no longer required.

Links to any relevant issues

Closes #4204

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Dec 9, 2024
@thibault-martinez
Copy link
Member

There is a warning if you run clippy in release mode (ignore the external-crates ones).

@DaughterOfMars DaughterOfMars changed the title chore(clippy): Use expect over allow chore(lints): Use expect over allow Dec 12, 2024
@thibault-martinez thibault-martinez merged commit ce3b7f0 into develop Dec 16, 2024
41 of 42 checks passed
@thibault-martinez thibault-martinez deleted the dev-tools/allow-to-expect branch December 16, 2024 08:48
miker83z pushed a commit that referenced this pull request Dec 20, 2024
* chore(clippy): Use expect over allow

* add comment

* fix release warning

* revert type complexity allow

* review

* revert trait config

* another revert

---------

Co-authored-by: Thibault Martinez <thibault@iota.org>
jkrvivian pushed a commit that referenced this pull request Jan 6, 2025
* chore(clippy): Use expect over allow

* add comment

* fix release warning

* revert type complexity allow

* review

* revert trait config

* another revert

---------

Co-authored-by: Thibault Martinez <thibault@iota.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch #[allow]s to #[expect]s
10 participants