Lints: name the registered function type in craft-ui

This commit is contained in:
aiongg
2026-11-14 00:39:46 +00:00
parent 469e3cbc62
commit dd7fe94ebc
+4 -1
View File
@@ -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),