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:
parent
51b938496d
commit
432fe44187
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user