Browse Source

wip: cargo fix

Jonathan Kelley 4 năm trước cách đây
mục cha
commit
84c3e9f
3 tập tin đã thay đổi với 6 bổ sung19 xóa
  1. 4 10
      packages/core/src/context.rs
  2. 1 1
      packages/core/src/nodes.rs
  3. 1 8
      packages/core/src/scope.rs

+ 4 - 10
packages/core/src/context.rs

@@ -1,18 +1,12 @@
+use crate::innerlude::*;
 
-use crate::{innerlude::*};
+use futures_util::FutureExt;
 
-
-use futures_util::{FutureExt};
-
-
-use std::borrow::BorrowMut;
 use std::marker::PhantomData;
 
 use std::{
-    any::{Any, TypeId},
-    cell::{Cell, RefCell},
-    collections::{HashMap, HashSet, VecDeque},
-    fmt::Debug,
+    any::TypeId,
+    cell::RefCell,
     future::Future,
     ops::Deref,
     pin::Pin,

+ 1 - 1
packages/core/src/nodes.rs

@@ -5,7 +5,7 @@
 
 use crate::{
     events::VirtualEvent,
-    innerlude::{Context, Properties, RealDom, RealDomNode, Scope, ScopeIdx, FC},
+    innerlude::{Context, Properties, RealDomNode, Scope, ScopeIdx, FC},
 };
 use std::{
     cell::{Cell, RefCell},

+ 1 - 8
packages/core/src/scope.rs

@@ -1,18 +1,11 @@
 use crate::hooklist::HookList;
 use crate::{arena::SharedArena, innerlude::*};
 
-
-
-
-
-
 use std::{
     any::{Any, TypeId},
     cell::{Cell, RefCell},
-    collections::{HashMap, HashSet, VecDeque},
-    fmt::Debug,
+    collections::{HashMap, HashSet},
     future::Future,
-    ops::Deref,
     pin::Pin,
     rc::Rc,
 };