chore: clean up some clippy stuff

This commit is contained in:
Jonathan Kelley committed 2022-07-03 00:11:28 -04:00
1 parent 2884d72b08
commit 94004cfe19
8 files changed
+117 -134

No files matched your search

-10
View File
@@ -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>]>;
}