aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/flag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/program/flag.rs')
-rw-r--r--mingling_core/src/program/flag.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mingling_core/src/program/flag.rs b/mingling_core/src/program/flag.rs
index ba3376c..f44cf33 100644
--- a/mingling_core/src/program/flag.rs
+++ b/mingling_core/src/program/flag.rs
@@ -480,9 +480,9 @@ where
G: Display,
{
/// Registers a global argument (with value) and its handler.
- pub fn global_argument<F, A>(&mut self, arguments: A, do_fn: F)
+ pub fn global_argument<F, A>(&mut self, arguments: A, mut do_fn: F)
where
- F: Fn(&mut Program<C, G>, String),
+ F: FnMut(&mut Program<C, G>, String),
A: Into<Flag>,
{
let flag = arguments.into();
@@ -496,9 +496,9 @@ where
}
/// Registers a global flag (boolean) and its handler.
- pub fn global_flag<F, A>(&mut self, flag: A, do_fn: F)
+ pub fn global_flag<F, A>(&mut self, flag: A, mut do_fn: F)
where
- F: Fn(&mut Program<C, G>),
+ F: FnMut(&mut Program<C, G>),
A: Into<Flag>,
{
let flag = flag.into();