Make clippy happy
This commit is contained in:
8 files changed
+20
-23
No files matched your search
@@ -868,7 +868,7 @@ where
|
||||
nodes.extend(self.into_iter().map(|node| node.into_vnode(cx)));
|
||||
|
||||
match nodes.into_bump_slice() {
|
||||
children if children.is_empty() => DynamicNode::default(),
|
||||
[] => DynamicNode::default(),
|
||||
children => DynamicNode::Fragment(children),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ impl ScopeContext {
|
||||
}
|
||||
|
||||
let mut search_parent = self.parent_id;
|
||||
match with_runtime(|runtime: &crate::runtime::Runtime| {
|
||||
let cur_runtime = with_runtime(|runtime: &crate::runtime::Runtime| {
|
||||
while let Some(parent_id) = search_parent {
|
||||
let parent = runtime.get_context(parent_id).unwrap();
|
||||
tracing::trace!(
|
||||
@@ -135,9 +135,9 @@ impl ScopeContext {
|
||||
search_parent = parent.parent_id;
|
||||
}
|
||||
None
|
||||
})
|
||||
.flatten()
|
||||
{
|
||||
});
|
||||
|
||||
match cur_runtime.flatten() {
|
||||
Some(ctx) => Some(ctx),
|
||||
None => {
|
||||
tracing::trace!(
|
||||
|
||||
Reference in new issue
Block a user