forked from Proxmox/proxmox
router: completion: remove needles borrow
Fixes: warning: this expression creates a reference which is immediately dereferenced by the compiler --> proxmox-router/src/cli/completion.rs:154:25 | 154 | &completion_functions, | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `completion_functions` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default warning: this expression creates a reference which is immediately dereferenced by the compiler --> proxmox-router/src/cli/completion.rs:201:21 | 201 | &completion_functions, | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `completion_functions` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
b7100ecc1e
commit
a2e5973982
@ -151,7 +151,7 @@ fn get_simple_completion_do(
|
||||
return get_property_completion(
|
||||
schema,
|
||||
prop_name,
|
||||
&completion_functions,
|
||||
completion_functions,
|
||||
&args[0],
|
||||
done,
|
||||
);
|
||||
@ -198,7 +198,7 @@ fn get_simple_completion_do(
|
||||
return get_property_completion(
|
||||
schema,
|
||||
prop_name,
|
||||
&completion_functions,
|
||||
completion_functions,
|
||||
prefix,
|
||||
done,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user