diff --git a/output/src/group.rs b/output/src/group.rs index e043a1b..4c949c7 100644 --- a/output/src/group.rs +++ b/output/src/group.rs @@ -1,4 +1,4 @@ -use crate::*; +#[allow(unused)] use crate::*; pub struct Group(T); diff --git a/output/src/layout.rs b/output/src/layout.rs index 7bba46a..ec42644 100644 --- a/output/src/layout.rs +++ b/output/src/layout.rs @@ -95,4 +95,4 @@ mod layout_padding; pub use self::layout_padding::*; mod layout_pull; pub use self::layout_pull::*; mod layout_push; pub use self::layout_push::*; mod layout_shrink; pub use self::layout_shrink::*; -mod layout_stack; pub use self::layout_stack::*; +mod layout_stack; //pub use self::layout_stack::*; diff --git a/output/src/output.rs b/output/src/output.rs index 474ea55..29ff6b2 100644 --- a/output/src/output.rs +++ b/output/src/output.rs @@ -15,11 +15,9 @@ mod widget; pub use self::widget::*; pub(crate) use self::Direction::*; pub(crate) use std::fmt::{Debug, Display}; pub(crate) use std::marker::PhantomData; -pub(crate) use std::ops::{Add, Sub, Mul, Div, Deref}; -pub(crate) use std::rc::Rc; +pub(crate) use std::ops::{Add, Sub, Mul, Div}; pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::Relaxed}}; pub(crate) use tengri_core::*; -#[cfg(feature = "dsl")] pub(crate) use ::tengri_dsl::*; /// Draw target. pub trait Out: Send + Sync + Sized { diff --git a/proc/src/proc_expose.rs b/proc/src/proc_expose.rs index cdef432..2756b28 100644 --- a/proc/src/proc_expose.rs +++ b/proc/src/proc_expose.rs @@ -9,8 +9,8 @@ pub(crate) struct ExposeMeta; #[derive(Debug, Clone)] pub(crate) struct ExposeImpl(ItemImpl, BTreeMap>); -#[derive(Debug, Clone)] -struct ExposeSym(LitStr); +//#[derive(Debug, Clone)] +//struct ExposeSym(LitStr); #[derive(Debug, Clone)] struct ExposeType(Box); @@ -169,33 +169,33 @@ impl ExposeImpl { } } -impl From for ExposeSym { fn from (this: LitStr) -> Self { Self(this) } } +//impl From for ExposeSym { fn from (this: LitStr) -> Self { Self(this) } } -impl PartialOrd for ExposeSym { - fn partial_cmp (&self, other: &Self) -> Option { - let this = &self.0; - let that = &other.0; - Some(format!("{}", quote! { #this }).cmp(&format!("{}", quote! { #that }))) - } -} +//impl PartialOrd for ExposeSym { + //fn partial_cmp (&self, other: &Self) -> Option { + //let this = &self.0; + //let that = &other.0; + //Some(format!("{}", quote! { #this }).cmp(&format!("{}", quote! { #that }))) + //} +//} -impl Ord for ExposeSym { - fn cmp (&self, other: &Self) -> Ordering { - let this = &self.0; - let that = &other.0; - format!("{}", quote! { #this }).cmp(&format!("{}", quote! { #that })) - } -} +//impl Ord for ExposeSym { + //fn cmp (&self, other: &Self) -> Ordering { + //let this = &self.0; + //let that = &other.0; + //format!("{}", quote! { #this }).cmp(&format!("{}", quote! { #that })) + //} +//} -impl PartialEq for ExposeSym { - fn eq (&self, other: &Self) -> bool { - let this = &self.0; - let that = &other.0; - format!("{}", quote! { #this }) == format!("{}", quote! { #that }) - } -} +//impl PartialEq for ExposeSym { + //fn eq (&self, other: &Self) -> bool { + //let this = &self.0; + //let that = &other.0; + //format!("{}", quote! { #this }) == format!("{}", quote! { #that }) + //} +//} -impl Eq for ExposeSym {} +//impl Eq for ExposeSym {} impl From for ExposeType { fn from (this: Type) -> Self { Self(Box::new(this)) } }