is_multiple
shouldn't require &mut self
#4708
Labels
A-builder
Area: Builder API
C-bug
Category: Updating dependencies
E-easy
Call for participation: Experience needed to fix: Easy / not much
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
Milestone
Please complete the following tasks
Clap Version
4.1.4
Describe your use case
ArgGroup::is_multiple
requires a&mut self
, yet the function does not itself do any mutations to theArgGroup
. The&mut
is unnecessary. It also means that when you have an immutable reference to anArgGroup
(like the one you would get from callinggroups()
on a command), you can't check it the group allows multiple options.Describe the solution you'd like
We should remove the
&mut
from the function signature.Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: