mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
clippy: less .clone() calls, simpler pointer passing. (#707)
This commit is contained in:
parent
71ee4cd09d
commit
ddd463748d
3 changed files with 7 additions and 10 deletions
|
@ -322,7 +322,7 @@ impl Element {
|
|||
cx,
|
||||
element,
|
||||
attrs,
|
||||
children: children.clone(),
|
||||
children,
|
||||
#[cfg(debug_assertions)]
|
||||
view_marker,
|
||||
}
|
||||
|
|
|
@ -126,10 +126,7 @@ pub fn render_to_stream_in_order_with_prefix_undisposed_with_context(
|
|||
}
|
||||
|
||||
#[async_recursion(?Send)]
|
||||
async fn handle_chunks(
|
||||
mut tx: UnboundedSender<String>,
|
||||
chunks: Vec<StreamChunk>,
|
||||
) {
|
||||
async fn handle_chunks(tx: UnboundedSender<String>, chunks: Vec<StreamChunk>) {
|
||||
let mut buffer = String::new();
|
||||
for chunk in chunks {
|
||||
match chunk {
|
||||
|
|
|
@ -186,12 +186,12 @@ impl Runtime {
|
|||
let current_observer = self.observer.get();
|
||||
|
||||
// mark self dirty
|
||||
if let Some(mut current_node) = nodes.get_mut(node) {
|
||||
if let Some(current_node) = nodes.get_mut(node) {
|
||||
Runtime::mark(
|
||||
node,
|
||||
&mut current_node,
|
||||
current_node,
|
||||
ReactiveNodeState::Dirty,
|
||||
&mut *pending_effects,
|
||||
&mut pending_effects,
|
||||
current_observer,
|
||||
);
|
||||
|
||||
|
@ -200,10 +200,10 @@ impl Runtime {
|
|||
let mut descendants = Default::default();
|
||||
Runtime::gather_descendants(&subscribers, node, &mut descendants);
|
||||
for descendant in descendants {
|
||||
if let Some(mut node) = nodes.get_mut(descendant) {
|
||||
if let Some(node) = nodes.get_mut(descendant) {
|
||||
Runtime::mark(
|
||||
descendant,
|
||||
&mut node,
|
||||
node,
|
||||
ReactiveNodeState::Check,
|
||||
&mut pending_effects,
|
||||
current_observer,
|
||||
|
|
Loading…
Reference in a new issue