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

Allow to retrieve ReaderSegments object from reader objects #526

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

marmeladema
Copy link
Contributor

Closes #524

@@ -82,6 +82,10 @@ where
pub fn into_segments(self) -> S {
self.segments
}

pub(crate) fn get_segments(&self) -> &S {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this one should be public or not so i've kept it private for now.

Copy link

codecov bot commented Oct 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 52.44%. Comparing base (ab342b3) to head (e0e6798).
Report is 109 commits behind head on master.

Files with missing lines Patch % Lines
capnp/src/message.rs 0.00% 6 Missing ⚠️
capnp/src/private/arena.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #526      +/-   ##
==========================================
+ Coverage   51.64%   52.44%   +0.80%     
==========================================
  Files          69       70       +1     
  Lines       33735    34570     +835     
==========================================
+ Hits        17422    18130     +708     
- Misses      16313    16440     +127     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dwrensha dwrensha merged commit f97060c into capnproto:master Oct 22, 2024
10 checks passed
@dwrensha
Copy link
Member

Thanks!

@marmeladema marmeladema deleted the get-segments branch October 22, 2024 13:17
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.

Serializing from borrowed TypedReader
2 participants