chore: clean up some clippy stuff
This commit is contained in:
1 parent
2884d72b08
commit
94004cfe19
8 files changed
+117
-134
No files matched your search
@@ -56,19 +56,9 @@ pub(crate) mod innerlude {
|
||||
/// Example {}
|
||||
/// )
|
||||
/// ```
|
||||
///
|
||||
/// ## As a closure
|
||||
/// This particular type alias lets you even use static closures for pure/static components:
|
||||
///
|
||||
/// ```rust, ignore
|
||||
/// static Example: Component<Props> = |cx| {
|
||||
/// // ...
|
||||
/// };
|
||||
/// ```
|
||||
pub type Component<P = ()> = fn(Scope<P>) -> Element;
|
||||
|
||||
/// A list of attributes
|
||||
///
|
||||
pub type Attributes<'a> = Option<&'a [Attribute<'a>]>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user