Skip to content

Take &self in handle methods - #912

Merged
jadamcrain merged 1 commit into
2.0from
handle-methods-take-ref
Nov 28, 2026
Merged

jadamcrain merged 1 commit into
2.0from
handle-methods-take-ref

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

The methods of MasterChannel, AssociationHandle, PollHandle and OutstationHandle take &self instead of &mut self, so a handle can be shared without cloning or locking. Behavior is unchanged; callers that declared handles mut get unused_mut warnings.

@jadamcrain
jadamcrain merged commit 9fdbc66 into 2.0 Nov 28, 2026
30 checks passed
@jadamcrain
jadamcrain deleted the handle-methods-take-ref branch November 28, 2026 07:06
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.

1 participant