diff --git a/src/client.rs b/src/client.rs index aa5623f..e7833e4 100644 --- a/src/client.rs +++ b/src/client.rs @@ -110,8 +110,8 @@ impl<'a, T: Read + Write> AppendCmd<'a, T> { } /// Append an array of flags - pub fn flags(&mut self, flags: &'a [Flag<'a>]) -> &mut Self { - self.flags.append(&mut flags.to_vec()); + pub fn flags(&mut self, flags: impl IntoIterator>) -> &mut Self { + self.flags.extend(flags); self }