report: type-alias function call tuple

to make clippy happy.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-01-25 14:42:46 +01:00 committed by Wolfgang Bumiller
parent 51b938496d
commit 432fe44187

View File

@ -29,8 +29,10 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> {
] ]
} }
// (<description>, <function to call>) // (description, function())
fn function_calls() -> Vec<(&'static str, fn() -> String)> { type FunctionMapping = (&'static str, fn() -> String);
fn function_calls() -> Vec<FunctionMapping> {
vec![ vec![
("Datastores", || { ("Datastores", || {
let config = match datastore::config() { let config = match datastore::config() {