From dd7fe94ebc3ef2fccde64b3fe2508de56e12a5f9 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 14 Nov 2026 00:39:46 +0000 Subject: [PATCH] Lints: name the registered function type in craft-ui --- crates/ui/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/lib.rs b/crates/ui/src/lib.rs index f38a6b605..b08fee755 100644 --- a/crates/ui/src/lib.rs +++ b/crates/ui/src/lib.rs @@ -40,8 +40,11 @@ pub mod testing { crate::testing_registered!(); + /// A crate's `registered`. + type Registered = fn() -> Vec<&'static Registration>; + /// The crates of the library, each with its `registered`. - const LIBRARY: [(&str, fn() -> Vec<&'static Registration>); 7] = [ + const LIBRARY: [(&str, Registered); 7] = [ ("craft-ui", registered), ("craft-ui-contract", craft_ui_contract::testing::registered), ("craft-ui-widgets", craft_ui_widgets::testing::registered),