Skip to content

Conversation

@sugarraysam
Copy link
Contributor

As titled.

The only concern is this is most likely a breaking change for users of the library. If added through safe release mechanism the impact should be minimal?

More maintainable and better UX than passing u32's around.

pub fn flags(&self) -> CompletionFlags {
// Use retain as the upper 16 bits store buffer ID if BUFFER_SELECT opt
// is enabled.
CompletionFlags::from_bits_retain(self.0.flags)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I initially missed the fact that upper 16 bits have the buffer ID.

We use from_bits_retain to ensure we dont lose that information.

@quininer
Copy link
Member

This looks good. I'll hold it until next version to merge.

@sugarraysam
Copy link
Contributor Author

Rebased on 0.7.11

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.

2 participants