mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 01:44:25 +00:00
Lints: name the registered function type in craft-ui
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user