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 lint exception to make CI pass again #112

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

umgefahren
Copy link
Contributor

In Rust 1.80 cfg checking was introduced in stable. Since we use cfg(nightly) in one test to check the number of variants, we need to tell the compiler that this is okay.

It might seem like a dirty fix, but it's a widely used workaround:

It's also one of the suggested solutions by rust itself (and it's more efficient then using a build.rs file).

Originally posted by @umgefahren in #110 (comment)

Copy link
Contributor

@jxs jxs left a comment

Choose a reason for hiding this comment

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

LGTM

@jxs jxs merged commit 0d716c3 into multiformats:master Aug 14, 2024
4 checks passed
@umgefahren umgefahren deleted the add-lint-exception branch August 14, 2024 20:58
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.

2 participants