From 432fe4418773ae6480d71cf7a48b1d85cd5b61ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 25 Jan 2021 14:42:46 +0100 Subject: [PATCH] report: type-alias function call tuple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to make clippy happy. Signed-off-by: Fabian Grünbichler --- src/server/report.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/report.rs b/src/server/report.rs index 1b77f442..e89abbc5 100644 --- a/src/server/report.rs +++ b/src/server/report.rs @@ -29,8 +29,10 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> { ] } - // (, ) -fn function_calls() -> Vec<(&'static str, fn() -> String)> { +// (description, function()) +type FunctionMapping = (&'static str, fn() -> String); + +fn function_calls() -> Vec { vec![ ("Datastores", || { let config = match datastore::config() {