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

Expose buf_index #187

Merged
merged 2 commits into from
Dec 1, 2022
Merged

Expose buf_index #187

merged 2 commits into from
Dec 1, 2022

Conversation

Nehliin
Copy link
Contributor

@Nehliin Nehliin commented Nov 26, 2022

This makes it easier to build abstractions on top of the FixedBufferRegistry. I can work around this not being exposed it but it's a bit unnecessary to track the same information in multiple places and I don't see a reason from hiding this information from the users in the first place.

Copy link
Contributor

@mzabaluev mzabaluev left a comment

Choose a reason for hiding this comment

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

I don't see a reason why the buffer index should not be publicly accessible.

In a future change to resolve #185 and enable other alternative fixed buffer collections, this method will be provided by a trait, which should be made public to enable off-crate implementations.

Copy link
Collaborator

@FrankReh FrankReh left a comment

Choose a reason for hiding this comment

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

In for a penny, in for a pound.

@FrankReh
Copy link
Collaborator

Looks like fmt is not happy. Maybe a space or tab left on that blank line above the doc comment?

Copy link
Collaborator

@FrankReh FrankReh left a comment

Choose a reason for hiding this comment

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

Seems time to make cargo fmt happy.

@FrankReh FrankReh merged commit 0572c11 into tokio-rs:master Dec 1, 2022
@Nehliin Nehliin deleted the expose-buf-index branch December 1, 2022 12:33
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.

3 participants