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

Add 'get_mut' to stream for mutable reference to underlying stream. #21

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

ceranco
Copy link
Contributor

@ceranco ceranco commented Jan 7, 2025

This PR adds MessageStream::get_mut to complete the previously added MessageStream::get_ref.

I bumped into this because getting the cursor position in a file handle currently requires a mut reference.

@adwhit
Copy link
Owner

adwhit commented Jan 7, 2025

getting the cursor position in a file handle rust-lang/rust#59359 (comment).

Oh, that is unfortunate

@adwhit adwhit merged commit 4c54740 into adwhit:master Jan 7, 2025
1 check passed
@adwhit
Copy link
Owner

adwhit commented Jan 7, 2025

Released as 0.3.4

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