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>)
|
||||
fn function_calls() -> Vec<(&'static str, fn() -> String)> {
|
||||
// (description, function())
|
||||
type FunctionMapping = (&'static str, fn() -> String);
|
||||
|
||||
fn function_calls() -> Vec<FunctionMapping> {
|
||||
vec![
|
||||
("Datastores", || {
|
||||
let config = match datastore::config() {
|
||||
|
Loading…
Reference in New Issue
Block a user