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

Prevent most inappropriate uses of as for conversions #1784

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

briansmith
Copy link
Owner

See each commit message for details.

For now, just put `#[allow(...)]` directives in the places where the
conversions are done. We'll follow up in the future with the correct
replacement for `as` for each case, as several PRs.
@briansmith briansmith self-assigned this Oct 31, 2023
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #1784 (0ed36a9) into main (fce7153) will increase coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1784      +/-   ##
==========================================
+ Coverage   96.01%   96.02%   +0.01%     
==========================================
  Files         138      138              
  Lines       20789    20794       +5     
  Branches      226      226              
==========================================
+ Hits        19960    19968       +8     
+ Misses        792      790       -2     
+ Partials       37       36       -1     
Files Coverage Δ
src/aead/aes.rs 98.67% <100.00%> (+<0.01%) ⬆️
src/aead/chacha.rs 100.00% <100.00%> (ø)
src/aead/gcm.rs 98.00% <100.00%> (ø)
src/aead/gcm/gcm_nohw.rs 76.69% <100.00%> (+0.11%) ⬆️
src/digest/sha1.rs 100.00% <100.00%> (ø)
src/digest/sha2.rs 100.00% <100.00%> (ø)
src/ec/suite_b/ecdsa/signing.rs 96.22% <ø> (ø)
src/ec/suite_b/ops/p256.rs 100.00% <ø> (ø)
src/ec/suite_b/ops/p384.rs 100.00% <ø> (ø)
src/endian.rs 96.29% <100.00%> (+0.14%) ⬆️
... and 3 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@briansmith briansmith merged commit 1432533 into main Oct 31, 2023
138 checks passed
@briansmith briansmith deleted the b/as_conversions branch October 31, 2023 02:17
@briansmith briansmith added this to the 0.17.6 milestone Jan 13, 2024
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