diff --git a/lib/src/config.rs b/lib/src/config.rs index 149fc7b..0320446 100644 --- a/lib/src/config.rs +++ b/lib/src/config.rs @@ -66,8 +66,12 @@ impl RuntimeConfig { } /// Set the command to run on action. - pub fn command<'cmd>(&mut self, command: impl IntoIterator) -> &mut Self { - self.action.command = command.into_iter().map(|c| c.to_owned()).collect(); + pub fn command(&mut self, command: I) -> &mut Self + where + I: IntoIterator, + S: AsRef, + { + self.action.command = command.into_iter().map(|c| c.as_ref().to_owned()).collect(); self }