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

Update Clippy command and Fix Clippy warnings #66

Merged
merged 3 commits into from
May 29, 2024
Merged

Update Clippy command and Fix Clippy warnings #66

merged 3 commits into from
May 29, 2024

Conversation

tareknaser
Copy link
Collaborator

@tareknaser tareknaser commented May 24, 2024

Description:

This pull request includes two changes:

  1. Refactoring to address Clippy warnings.
  2. Updating the Clippy command in the build workflow to include additional flags to improve linting coverage.

Fixes #53

Copy link

Benchmark for cc4930a

Click to view benchmark
Test Base PR %
../test-assets/lena.jpg/compute_bytes 13.9±0.05µs 13.9±0.10µs 0.00%
../test-assets/test.pdf/compute_bytes 111.0±0.80µs 112.0±0.93µs +0.90%
compute_bytes_large/compute_bytes 248.3±4.69µs 143.7±1.70µs -42.13%
compute_bytes_medium/compute_bytes 27.2±0.31µs 29.8±0.20µs +9.56%
compute_bytes_small/compute_bytes 131.5±3.74ns 131.1±2.02ns -0.30%
index_build/index_build/../test-assets/ 160.4±1.05µs 160.9±0.70µs +0.31%

@kirillt
Copy link
Member

kirillt commented May 25, 2024

@tareknaser good PR, thanks! Could you also take this contributing instruction from Navigator, proofread it and copy to ark-rust repo as CONTRIBUTE.md?

I'll refer it from the clippy issue.

Copy link

Benchmark for 35142f9

Click to view benchmark
Test Base PR %
blake3_resource_id_creation/compute_from_bytes:large 249.5±1.44µs 252.7±0.93µs +1.28%
blake3_resource_id_creation/compute_from_bytes:medium 15.6±0.11µs 15.6±0.07µs 0.00%
blake3_resource_id_creation/compute_from_bytes:small 1346.3±10.27ns 1348.2±2.84ns +0.14%
blake3_resource_id_creation/compute_from_path:../test-assets/lena.jpg 196.0±2.11µs 196.3±1.30µs +0.15%
blake3_resource_id_creation/compute_from_path:../test-assets/test.pdf 1722.5±4.11µs 1733.2±15.38µs +0.62%
crc32_resource_id_creation/compute_from_bytes:large 86.7±1.23µs 86.6±0.44µs -0.12%
crc32_resource_id_creation/compute_from_bytes:medium 5.4±0.02µs 5.4±0.04µs 0.00%
crc32_resource_id_creation/compute_from_bytes:small 92.3±0.24ns 92.3±0.29ns 0.00%
crc32_resource_id_creation/compute_from_path:../test-assets/lena.jpg 63.9±0.17µs 64.4±0.26µs +0.78%
crc32_resource_id_creation/compute_from_path:../test-assets/test.pdf 918.9±7.69µs 924.0±2.89µs +0.56%
index_build/index_build/../test-assets/ 1070.0±3.00µs 1066.5±6.26µs -0.33%

Copy link
Member

@kirillt kirillt left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@kirillt kirillt merged commit adfc3b0 into main May 29, 2024
4 checks passed
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.

Implement suggestions from cargo clippy
2 participants