clean up warnings and update prelude

This commit is contained in:
Evan Almloff committed 2022-12-28 20:42:47 -06:00
1 parent 044462876d
commit cb17252a21
3 files changed
+10 -10

No files matched your search

+7 -7
View File
@@ -70,10 +70,10 @@ pub(crate) mod innerlude {
} }
pub use crate::innerlude::{ pub use crate::innerlude::{
fc_to_builder, Attribute, AttributeValue, CapturedError, Component, DynamicNode, Element, fc_to_builder, AnyValueContainer, Attribute, AttributeValue, CapturedError, Component,
ElementId, Event, Fragment, IntoDynNode, LazyNodes, Mutation, Mutations, Properties, DynamicNode, Element, ElementId, Event, Fragment, IntoDynNode, LazyNodes, Mutation, Mutations,
RenderReturn, Scope, ScopeId, ScopeState, Scoped, SuspenseContext, TaskId, Template, Properties, RenderReturn, Scope, ScopeId, ScopeState, Scoped, SuspenseContext, TaskId,
TemplateAttribute, TemplateNode, VComponent, VNode, VText, VirtualDom, Template, TemplateAttribute, TemplateNode, VComponent, VNode, VText, VirtualDom,
}; };
/// The purpose of this module is to alleviate imports of many common types /// The purpose of this module is to alleviate imports of many common types
@@ -81,9 +81,9 @@ pub use crate::innerlude::{
/// This includes types like [`Scope`], [`Element`], and [`Component`]. /// This includes types like [`Scope`], [`Element`], and [`Component`].
pub mod prelude { pub mod prelude {
pub use crate::innerlude::{ pub use crate::innerlude::{
fc_to_builder, Component, Element, Event, EventHandler, Fragment, LazyNodes, Properties, fc_to_builder, Component, Element, Event, EventHandler, Fragment, IntoAttributeValue,
Scope, ScopeId, ScopeState, Scoped, TaskId, Template, TemplateAttribute, TemplateNode, LazyNodes, Properties, Scope, ScopeId, ScopeState, Scoped, TaskId, Template,
Throw, VNode, VirtualDom, TemplateAttribute, TemplateNode, Throw, VNode, VirtualDom,
}; };
} }
+2 -2
View File
@@ -673,7 +673,7 @@ impl<T: Any + PartialEq + Send + Sync + 'static> AnyValue for T {
if let Some(other) = other.as_any().downcast_ref() { if let Some(other) = other.as_any().downcast_ref() {
self == other self == other
} else { } else {
return false; false
} }
} }
@@ -698,7 +698,7 @@ impl<T: Any + PartialEq + 'static> AnyValue for T {
if let Some(other) = other.as_any().downcast_ref() { if let Some(other) = other.as_any().downcast_ref() {
self == other self == other
} else { } else {
return false; false
} }
} }
+1 -1
View File
@@ -640,7 +640,7 @@ impl VirtualDom {
} }
/// Swap the current mutations with a new /// Swap the current mutations with a new
fn finalize<'a>(&'a mut self) -> Mutations<'a> { fn finalize(&mut self) -> Mutations {
self.mutations.take() self.mutations.take()
} }
} }