Fix deref syntax error

This commit is contained in:
Rajasekharan Vengalil 2022-08-08 19:15:54 +05:30
parent 7f7f8db807
commit 2fe19808d5

View file

@ -51,7 +51,7 @@ impl<'a> Command<'a> {
Self::List(query) => query.to_vec(), Self::List(query) => query.to_vec(),
#[cfg(feature = "write")] #[cfg(feature = "write")]
Self::Run(cmd, param) => param Self::Run(cmd, param) => param
.map(|param| vec![cmd, param]) .map(|param| vec![*cmd, param])
.unwrap_or_else(|| vec![cmd]), .unwrap_or_else(|| vec![cmd]),
_ => Vec::new(), _ => Vec::new(),
} }