chore: clippy

This commit is contained in:
Greg Johnston 2024-07-30 17:04:02 -04:00
parent 3e05b5bcb4
commit ab3e94dafa
3 changed files with 6 additions and 6 deletions

View file

@ -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")]

View file

@ -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 }
}
}

View file

@ -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(