Skip to content

Enable clippy::absolute_paths lint #465

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

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Dec 26, 2023

In the past we had many submissions that, for one reason or another, were using absolute paths to functions/constants in a very inconsistent manner. It is not particularly great use of anybody's time pointing these out and it's certainly a job that computers can do better. Clippy folks seem to concur that this can be a useful lint [0] and we got blessed with clippy::absolute_paths.
Enable it throughout the crate and fix all violations.

[0] rust-lang/rust-clippy#10568

In the past we had many submissions that, for one reason or another,
were using absolute paths to functions/constants in a very inconsistent
manner. It is not particularly great use of anybody's time pointing
these out and it's certainly a job that computers can do better. Clippy
folks seem to concur that this can be a useful lint [0] and we got
blessed with clippy::absolute_paths.
Enable it throughout the crate and fix all violations.

[0] rust-lang/rust-clippy#10568

Signed-off-by: Daniel Müller <[email protected]>
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (066a3f1) 92.32% compared to head (9d729af) 92.32%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #465   +/-   ##
=======================================
  Coverage   92.32%   92.32%           
=======================================
  Files          41       41           
  Lines        6396     6396           
=======================================
  Hits         5905     5905           
  Misses        491      491           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@d-e-s-o d-e-s-o merged commit adefd48 into libbpf:main Dec 26, 2023
@d-e-s-o d-e-s-o deleted the topic/absolute-paths branch December 26, 2023 22:25
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.

1 participant