Clear warnings

This commit is contained in:
Greg Johnston 2022-11-18 16:46:25 -05:00
parent d654a13541
commit 9f4b3c9f26
3 changed files with 6 additions and 4 deletions

View file

@ -54,7 +54,9 @@ where
if #[cfg(not(feature = "ssr"))] {
create_isomorphic_effect(cx, f);
} else {
{ }
// clear warnings
_ = cx;
_ = f;
}
}
}

View file

@ -185,7 +185,7 @@ impl Scope {
let scope = scopes
.get(self.id)
.expect("tried to add property to a scope that has been disposed");
f(&mut *scope.borrow_mut());
f(&mut scope.borrow_mut());
}
}

View file

@ -1,6 +1,6 @@
use std::{cell::RefCell, rc::Rc};
use std::rc::Rc;
use crate::{create_scope, Memo, ReadSignal, RwSignal, Scope, UntrackedGettableSignal};
use crate::{Memo, ReadSignal, RwSignal, Scope, UntrackedGettableSignal};
/// A wrapper for any kind of readable reactive signal: a [ReadSignal](crate::ReadSignal),
/// [Memo](crate::Memo), [RwSignal](crate::RwSignal), or derived signal closure.