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

Make clippy happy #81

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Make clippy happy #81

merged 3 commits into from
Sep 13, 2024

Conversation

shuhuiluo
Copy link
Collaborator

Merge after #80.

Inline annotations were added to functions across multiple modules to suggest the compiler to replace function calls with the function's body. This could potentially optimize runtime performance by reducing the overhead of function calls.
Re-enable several Clippy lints for cleaner code validation. Refactor `panic!` calls to `assert!` for better consistency and clarity. Update function arguments to use references where appropriate.
Uncommented the `clippy::must_use_candidate` lint and annotated essential functions with `#[must_use]` attribute. This increases code reliability by enforcing that critical return values are not ignored.
@shuhuiluo shuhuiluo requested a review from malik672 September 13, 2024 03:09
@malik672 malik672 merged commit 3eb67dc into addresses Sep 13, 2024
2 checks passed
@malik672 malik672 deleted the clippy branch September 13, 2024 07:56
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