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

aya: deny various allow-by-default lints #763

Merged
merged 1 commit into from
Aug 24, 2023
Merged

aya: deny various allow-by-default lints #763

merged 1 commit into from
Aug 24, 2023

Conversation

tamird
Copy link
Member

@tamird tamird commented Aug 22, 2023

Notably:

  • clippy::use_self: replaced many T with Self.
  • single_use_lifetimes: removed some single use lifetimes.
  • unreachable_pub: removed some unreachable pub items.
  • unused_crate_dependencies: removed unused futures,parking_lot deps.
  • unused_qualifications: found a potential crate vs $crate bug.
  • let_underscore_drop: not enabled, seems to trigger false positives.
  • missing_copy_implementations: not enabled, unclear if we want this.
  • unsafe_op_in_unsafe_fn: not enabled, unclear if we want this.
  • unused_results: not enabled, needs many fixes (but I think wanted).

@netlify
Copy link

netlify bot commented Aug 22, 2023

Deploy Preview for aya-rs-docs ready!

Name Link
🔨 Latest commit abda239
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/64e66baa241ca900079cbc8a
😎 Deploy Preview https://deploy-preview-763--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify
Copy link

mergify bot commented Aug 22, 2023

Hey @alessandrod, this pull request changes the Aya Public API and requires your review.

@mergify mergify bot added api/needs-review Makes an API change that needs review aya This is about aya (userspace) test A PR that improves test cases or CI labels Aug 22, 2023
@tamird tamird force-pushed the lints branch 2 times, most recently from 12d908d to 7a879d9 Compare August 22, 2023 19:22
Notably:
- clippy::use_self: replaced many T with Self.
- single_use_lifetimes: removed some single use lifetimes.
- unreachable_pub: removed some unreachable pub items.
- unused_crate_dependencies: removed unused futures,parking_lot deps.
- unused_qualifications: found a potential `crate` vs `$crate` bug.
- let_underscore_drop: not enabled, seems to trigger false positives.
- missing_copy_implementations: not enabled, unclear if we want this.
- unsafe_op_in_unsafe_fn: not enabled, unclear if we want this.
- unused_results: not enabled, needs many fixes (but I think wanted).
Comment on lines +503 to +504
#[allow(trivial_numeric_casts)]
let fd = fd as RawFd;
Copy link
Member

Choose a reason for hiding this comment

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

I assume this will go away with when bpf_create_map returns an OwnedFd?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, though it might end up relocating elsewhere.

@tamird tamird merged commit ff8c124 into main Aug 24, 2023
22 checks passed
@tamird tamird deleted the lints branch August 24, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api/needs-review Makes an API change that needs review aya This is about aya (userspace) test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants