mirror of
https://github.com/arampoire/nut-rs.git
synced 2025-12-01 00:30:23 -05:00
Fix deref syntax error
This commit is contained in:
parent
7f7f8db807
commit
2fe19808d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue