FIx: cargo fix to clean up things
This commit is contained in:
1 parent
29751a4bab
commit
78d093a945
23 files changed
+91
-101
No files matched your search
@@ -5,7 +5,7 @@ use crate::nodes::VNode;
|
||||
use bumpalo::Bump;
|
||||
|
||||
use std::{
|
||||
any::{Any, TypeId},
|
||||
any::{Any},
|
||||
cell::RefCell,
|
||||
marker::PhantomData,
|
||||
ops::Deref,
|
||||
@@ -145,7 +145,7 @@ impl<P: Properties + 'static> Scoped for Scope<P> {
|
||||
.expect("Viewing did not happen");
|
||||
}
|
||||
|
||||
fn compare_props(&self, new: &Any) -> bool {
|
||||
fn compare_props(&self, new: &dyn Any) -> bool {
|
||||
new.downcast_ref::<P>()
|
||||
.map(|f| &self.props == f)
|
||||
.expect("Props should not be of a different type")
|
||||
|
||||
Reference in new issue
Block a user