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

Incorporate Clippy reported suggestion #958

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Jan 10, 2025

Clippy complains that we are using str.as_bytes().len() when we could be using str.len(). Point taken. Adjust the code accordingly.

Clippy complains that we are using str.as_bytes().len() when we could be
using str.len(). Point taken. Adjust the code accordingly.

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

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.50%. Comparing base (94946ca) to head (9d2985b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #958      +/-   ##
==========================================
+ Coverage   94.47%   94.50%   +0.02%     
==========================================
  Files          57       57              
  Lines       10644    10603      -41     
==========================================
- Hits        10056    10020      -36     
+ Misses        588      583       -5     

☔ 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 225f3ef into libbpf:main Jan 10, 2025
40 of 41 checks passed
@d-e-s-o d-e-s-o deleted the topic/clippy branch January 10, 2025 18:04
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