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

Clean up rustls::internal exports #1544

Merged
merged 12 commits into from
Oct 19, 2023
Merged

Clean up rustls::internal exports #1544

merged 12 commits into from
Oct 19, 2023

Conversation

ctz
Copy link
Member

@ctz ctz commented Oct 18, 2023

This is a tentative attempt to clean this up, starting by being precise about what parts are needed to run the existing tests we have. That has uncovered a few instances of unused code that were previously pub.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #1544 (e5a2d42) into main (3b8a7c3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1544      +/-   ##
==========================================
+ Coverage   96.46%   96.49%   +0.02%     
==========================================
  Files          74       74              
  Lines       15107    15110       +3     
==========================================
+ Hits        14573    14580       +7     
+ Misses        534      530       -4     
Files Coverage Δ
rustls/src/client/tls12.rs 98.53% <100.00%> (ø)
rustls/src/enums.rs 100.00% <ø> (ø)
rustls/src/msgs/base.rs 92.78% <100.00%> (+2.78%) ⬆️
rustls/src/msgs/codec.rs 98.75% <100.00%> (ø)
rustls/src/msgs/deframer.rs 97.98% <100.00%> (+0.19%) ⬆️
rustls/src/msgs/enums.rs 100.00% <ø> (ø)
rustls/src/msgs/fragmenter.rs 100.00% <100.00%> (ø)
rustls/src/msgs/handshake.rs 98.10% <100.00%> (+<0.01%) ⬆️
rustls/src/msgs/handshake_test.rs 99.60% <100.00%> (+<0.01%) ⬆️
rustls/src/msgs/macros.rs 93.02% <100.00%> (ø)
... and 3 more

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

The goal of this is to make the visibility of the type it produces
explicit rather than implicit.

As a side effect, it makes the declarations a bit less odd-looking.
@ctz ctz marked this pull request as ready for review October 19, 2023 10:48
Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Really nice clean-up!

rustls/tests/api.rs Outdated Show resolved Hide resolved
rustls/src/msgs/base.rs Outdated Show resolved Hide resolved
@ctz ctz added this pull request to the merge queue Oct 19, 2023
Merged via the queue into main with commit 1fbb608 Oct 19, 2023
42 checks passed
@ctz ctz deleted the jbp-clean-up-internal branch October 19, 2023 15:15
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.

None yet

3 participants