fix clippy

This commit is contained in:
Evan Almloff committed 2023-07-18 13:16:17 -07:00
1 parent 8188011fe3
commit a96ccdc6f3
3 files changed
+4 -10

No files matched your search

+1 -7
View File
@@ -10,8 +10,6 @@ mod rt;
use dioxus_core::ScopeState;
pub use rt::*;
use crate::rt::claim_rt;
pub fn use_init_signal_rt(cx: &ScopeState) {
cx.use_hook(|| {
let rt = claim_rt(cx.schedule_update_any());
@@ -96,11 +94,7 @@ impl<T: Clone + 'static> std::ops::Deref for Signal<T> {
impl<T> std::clone::Clone for Signal<T> {
fn clone(&self) -> Self {
Self {
t: PhantomData,
id: self.id,
rt: self.rt,
}
*self
}
}