Enable clippy

This commit is contained in:
Alexandre Kirszenberg committed 2022-01-08 16:35:26 +01:00
1 parent 4f1894ff5c
commit b6903bf558
14 files changed
+46 -50

No files matched your search

+2 -4
View File
@@ -6,12 +6,10 @@ use std::{
use dioxus_core::ScopeState;
pub fn use_ref<'a, T: 'static>(cx: &'a ScopeState, f: impl FnOnce() -> T) -> &'a UseRef<T> {
let inner = cx.use_hook(|_| UseRef {
cx.use_hook(|_| UseRef {
update_callback: cx.schedule_update(),
value: Rc::new(RefCell::new(f())),
});
inner
})
}
pub struct UseRef<T> {