Преглед на файлове

style: format againkjdfakbjfbkasjd

Ilya Maximov преди 3 години
родител
ревизия
916dc64402
променени са 4 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 2 1
      packages/hooks/src/use_shared_state.rs
  2. 2 1
      packages/hooks/src/useref.rs
  3. 2 1
      packages/hooks/src/usestate.rs
  4. 2 1
      packages/router/src/service.rs

+ 2 - 1
packages/hooks/src/use_shared_state.rs

@@ -2,7 +2,8 @@ use dioxus_core::{ScopeId, ScopeState};
 use std::{
 use std::{
     cell::{Cell, Ref, RefCell, RefMut},
     cell::{Cell, Ref, RefCell, RefMut},
     collections::HashSet,
     collections::HashSet,
-    rc::Rc, sync::Arc,
+    rc::Rc,
+    sync::Arc,
 };
 };
 
 
 type ProvidedState<T> = RefCell<ProvidedStateInner<T>>;
 type ProvidedState<T> = RefCell<ProvidedStateInner<T>>;

+ 2 - 1
packages/hooks/src/useref.rs

@@ -1,7 +1,8 @@
 use dioxus_core::ScopeState;
 use dioxus_core::ScopeState;
 use std::{
 use std::{
     cell::{Ref, RefCell, RefMut},
     cell::{Ref, RefCell, RefMut},
-    rc::Rc, sync::Arc,
+    rc::Rc,
+    sync::Arc,
 };
 };
 
 
 /// `use_ref` is a key foundational hook for storing state in Dioxus.
 /// `use_ref` is a key foundational hook for storing state in Dioxus.

+ 2 - 1
packages/hooks/src/usestate.rs

@@ -4,7 +4,8 @@ use dioxus_core::prelude::*;
 use std::{
 use std::{
     cell::{RefCell, RefMut},
     cell::{RefCell, RefMut},
     fmt::{Debug, Display},
     fmt::{Debug, Display},
-    rc::Rc, sync::Arc,
+    rc::Rc,
+    sync::Arc,
 };
 };
 
 
 /// Store state between component renders.
 /// Store state between component renders.

+ 2 - 1
packages/router/src/service.rs

@@ -2,7 +2,8 @@ use gloo::history::{BrowserHistory, History, HistoryListener, Location};
 use std::{
 use std::{
     cell::{Cell, Ref, RefCell},
     cell::{Cell, Ref, RefCell},
     collections::{HashMap, HashSet},
     collections::{HashMap, HashSet},
-    rc::Rc, sync::Arc,
+    rc::Rc,
+    sync::Arc,
 };
 };
 
 
 use dioxus_core::ScopeId;
 use dioxus_core::ScopeId;