From 5e8909476e465d0cf6903b813d9776943f1d710d 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 a6386a1c03af..f90be5ff87fa 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()); }