Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Nov 9, 2023
1 parent ec2d9d5 commit fba32b0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/reflow/bond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::rc::Rc;
use educe::Educe;
use indexmap::{IndexMap, IndexSet};

use super::{Lotus, Revisable, RevisableId, TRACKING_STACK};
use super::{Revisable, RevisableId, TRACKING_STACK};
use crate::ViewId;

#[derive(Educe)]
Expand Down
8 changes: 3 additions & 5 deletions crates/core/src/reflow/lotus.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#[cfg(not(feature = "__single_holder"))]
use std::cell::Cell;
use std::cell::{Ref, RefCell};
use std::fmt::{self, Display};
use std::hash::Hash;
use std::fmt;
use std::rc::Rc;
use std::sync::atomic::{AtomicU64, Ordering};

use indexmap::{IndexMap, IndexSet};
use indexmap::IndexSet;

use super::{Bond, Cage, Revisable, RevisableId};
#[cfg(not(feature = "__single_holder"))]
Expand Down Expand Up @@ -137,7 +135,7 @@ where
fn bind_view(&self, view_id: &ViewId) {
match self {
#[cfg(feature = "__single_holder")]
Self::Bare(value_) => {}
Self::Bare(_value) => {}
#[cfg(not(feature = "__single_holder"))]
Self::Bare { holder_id, .. } => {
holder_id.set(Some(view_id.holder_id()));
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/reflow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use lotus::Lotus;
pub mod scheduler;
pub use scheduler::{batch, schedule};

use std::cell::{Ref, RefCell};
use std::cell::RefCell;
use std::fmt::{self, Display};
use std::hash::Hash;
use std::rc::Rc;
Expand Down Expand Up @@ -151,4 +151,4 @@ impl Hash for dyn Revisable {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.id().hash(state);
}
}
}
2 changes: 1 addition & 1 deletion crates/core/src/web/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::ops::Deref;
use wasm_bindgen::UnwrapThrowExt;

use crate::node::Node;
use crate::reflow::{Bond, Cage, Lotus, Revisable};
use crate::reflow::{Bond, Cage, Revisable};
use crate::ViewId;

/// Represents the different possible values an attribute node could have.
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/web/prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl PropValue for JsValue {
}
impl PropValue for String {
#[cfg(all(target_arch = "wasm32", feature = "web-csr"))]
fn inject_to(&self, view_id: &ViewId, node: &mut Node, name: &str, first_time: bool) {
fn inject_to(&self, _view_id: &ViewId, node: &mut Node, name: &str, first_time: bool) {
if first_time {
let name = JsValue::from_str(name);
let value = self.into();
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/web/widgets/csr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use std::ops::Deref;

use educe::Educe;
// #[cfg(all(target_arch = "wasm32", feature = "web-csr"))]
use wasm_bindgen::{intern, JsCast, JsValue, UnwrapThrowExt};
use wasm_bindgen::{JsCast, UnwrapThrowExt};

use crate::reflow::{Bond, Lotus, Revisable};
use crate::reflow::{Bond, Lotus};
use crate::view::{ViewId, ViewPosition};
use crate::web::events::EventDescriptor;
use crate::web::{AttrValue, ClassPart, Classes, PropValue};
Expand Down
5 changes: 2 additions & 3 deletions crates/core/src/web/widgets/ssr.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
use std::borrow::Cow;
use std::collections::BTreeMap;
use std::fmt::Debug;
use std::rc::Rc;

use educe::Educe;
#[cfg(all(target_arch = "wasm32", feature = "web-csr"))]
use wasm_bindgen::UnwrapThrowExt;

use crate::node::{Node, NodeRef};
use crate::reflow::{Bond, Lotus, Revisable};
use crate::reflow::{Bond, Lotus};
use crate::view::{ViewId, ViewPosition};
use crate::web::events::EventDescriptor;
use crate::web::{AttrValue, Classes, PropValue};
use crate::web::{AttrValue, ClassPart, Classes, PropValue};
use crate::widget::{Filler, IntoFiller};
use crate::{Scope, Widget};

Expand Down
1 change: 0 additions & 1 deletion crates/routing/src/locator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::borrow::Borrow;
use std::collections::BTreeMap;

use multimap::MultiMap;
Expand Down
1 change: 0 additions & 1 deletion examples/hackernews-salvo/src/views/user.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use glory::reflow::*;
use glory::routing::*;
use glory::web::widgets::*;
use glory::widgets::*;
Expand Down

0 comments on commit fba32b0

Please sign in to comment.