mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: clippy
This commit is contained in:
parent
3e05b5bcb4
commit
ab3e94dafa
3 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ where
|
|||
|
||||
#[cfg(debug_assertions)]
|
||||
thread_local! {
|
||||
static FIRST_CALL: Cell<bool> = Cell::new(true);
|
||||
static FIRST_CALL: Cell<bool> = const { Cell::new(true) };
|
||||
}
|
||||
|
||||
#[cfg(feature = "hydrate")]
|
||||
|
|
|
@ -182,6 +182,8 @@ impl TitleView {
|
|||
}
|
||||
|
||||
struct TitleViewState {
|
||||
// effect is stored in the view state to keep it alive until rebuild
|
||||
#[allow(dead_code)]
|
||||
effect: RenderEffect<Oco<'static, str>>,
|
||||
}
|
||||
|
||||
|
@ -279,9 +281,7 @@ impl RenderHtml<Dom> for TitleView {
|
|||
text
|
||||
}
|
||||
});
|
||||
TitleViewState {
|
||||
effect,
|
||||
}
|
||||
TitleViewState { effect }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -364,7 +364,7 @@ impl Effect {
|
|||
&mut *dep_value.write().or_poisoned(),
|
||||
);
|
||||
let new_dep_value = owner.with_cleanup(|| {
|
||||
subscriber.with_observer(|| dependency_fn())
|
||||
subscriber.with_observer(&mut dependency_fn)
|
||||
});
|
||||
|
||||
let old_watch_value = mem::take(
|
||||
|
@ -434,7 +434,7 @@ impl Effect {
|
|||
&mut *dep_value.write().or_poisoned(),
|
||||
);
|
||||
let new_dep_value = owner.with_cleanup(|| {
|
||||
subscriber.with_observer(|| dependency_fn())
|
||||
subscriber.with_observer(&mut dependency_fn)
|
||||
});
|
||||
|
||||
let old_watch_value = mem::take(
|
||||
|
|
Loading…
Reference in a new issue