From f7cc420be63f699996f6f773c9b19ee391d8379e Mon Sep 17 00:00:00 2001 From: Kurtis Nusbaum Date: Mon, 13 Feb 2023 04:31:45 +0000 Subject: [PATCH] fix(builder): Don't require mut for is_multiple --- src/builder/arg_group.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builder/arg_group.rs b/src/builder/arg_group.rs index a6386a1c03a..f90be5ff87f 100644 --- a/src/builder/arg_group.rs +++ b/src/builder/arg_group.rs @@ -270,7 +270,7 @@ impl ArgGroup { /// /// assert!(group.is_multiple()); /// ``` - pub fn is_multiple(&mut self) -> bool { + pub fn is_multiple(&self) -> bool { self.multiple } @@ -577,10 +577,10 @@ mod test { fn arg_group_expose_is_multiple_helper() { let args: Vec = vec!["a1".into(), "a4".into()]; - let mut grp_multiple = ArgGroup::new("test_multiple").args(&args).multiple(true); + let grp_multiple = ArgGroup::new("test_multiple").args(&args).multiple(true); assert!(grp_multiple.is_multiple()); - let mut grp_not_multiple = ArgGroup::new("test_multiple").args(&args).multiple(false); + let grp_not_multiple = ArgGroup::new("test_multiple").args(&args).multiple(false); assert!(!grp_not_multiple.is_multiple()); }