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:
Maximiliano Sandoval 2024-08-26 14:15:31 +02:00 committed by Wolfgang Bumiller
parent b7100ecc1e
commit a2e5973982

View File

@ -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,
);