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

udev: Fix error when using Rust 1.70 #625

Merged

Conversation

diconico07
Copy link
Contributor

What this PR does / why we need it:
The bindings_with_variant_name is set to deny by default since 1.68.0, it seems it wasn't correctly enforced back then as the error only triggers with a rustc >=1.70 here.

This commit just rename the binding that use a variant name, this way we don't trigger this error.

While not needed as of now (we are still using 1.68.1 version), this change will likely make the move to newer versions of Rust easier

Special notes for your reviewer:

If applicable:

  • this PR has an associated PR with documentation in akri-docs
  • this PR contains unit tests
  • added code adheres to standard Rust formatting (cargo fmt)
  • code builds properly (cargo build)
  • code is free of common mistakes (cargo clippy)
  • all Akri tests succeed (cargo test)
  • inline documentation builds (cargo doc)
  • all commits pass the DCO bot check by being signed off -- see the failing DCO check for instructions on how to retroactively sign commits

The `bindings_with_variant_name` is set to deny by default since 1.68.0,
it seems it wasn't correctly enforced back then as the error only
triggers with a rustc >=1.70 here.

This commit just rename the binding that use a variant name, this way we
don't trigger this error.

Signed-off-by: Nicolas Belouin <[email protected]>
Signed-off-by: Nicolas Belouin <[email protected]>
@diconico07 diconico07 force-pushed the fix_bindings_with_variant_name branch from 741d1b4 to 827978b Compare July 24, 2023 07:44
@diconico07 diconico07 merged commit 5cb9566 into project-akri:main Jul 24, 2023
50 checks passed
@diconico07 diconico07 deleted the fix_bindings_with_variant_name branch July 24, 2023 09:44
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