chore: make clippy happy

This commit is contained in:
Jonathan Kelley committed 2022-07-02 23:45:32 -04:00
1 parent fcbd260f1a
commit 2884d72b08
10 files changed
+42 -50

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ use crate::{use_atom_root, Writable};
use dioxus_core::ScopeState;
use std::rc::Rc;
pub fn use_set<'a, T: 'static>(cx: &'a ScopeState, f: impl Writable<T>) -> &'a Rc<dyn Fn(T)> {
pub fn use_set<T: 'static>(cx: &ScopeState, f: impl Writable<T>) -> &Rc<dyn Fn(T)> {
let root = use_atom_root(cx);
cx.use_hook(|_| {
let id = f.unique_id();