diff --git a/packages/blitz-dom/src/handle.rs b/packages/blitz-dom/src/handle.rs index 2da9a193..05119c53 100644 --- a/packages/blitz-dom/src/handle.rs +++ b/packages/blitz-dom/src/handle.rs @@ -227,7 +227,7 @@ impl PartialEq for Handle<'_> { // TODO (Matt) impl Eq for Handle<'_> {} -impl<'a> TDocument for Handle<'a> { +impl TDocument for Handle<'_> { type ConcreteNode = Self; fn as_node(&self) -> Self::ConcreteNode { @@ -257,7 +257,7 @@ impl NodeInfo for Handle<'_> { } } -impl<'a> TShadowRoot for Handle<'a> { +impl TShadowRoot for Handle<'_> { type ConcreteNode = Self; fn as_node(&self) -> Self::ConcreteNode { @@ -277,10 +277,10 @@ impl<'a> TShadowRoot for Handle<'a> { } // components/styleaapper.rs: -impl<'a> TNode for Handle<'a> { - type ConcreteElement = Handle<'a>; - type ConcreteDocument = Handle<'a>; - type ConcreteShadowRoot = Handle<'a>; +impl TNode for Handle<'_> { + type ConcreteElement = Self; + type ConcreteDocument = Self; + type ConcreteShadowRoot = Self; fn parent_node(&self) -> Option { self.node.parent.map(|id| self.get(id)) diff --git a/packages/blitz-dom/src/node.rs b/packages/blitz-dom/src/node.rs index d4ae2566..38522e6a 100644 --- a/packages/blitz-dom/src/node.rs +++ b/packages/blitz-dom/src/node.rs @@ -40,13 +40,6 @@ pub enum DisplayOuter { /// A node in a [`Document`](crate::Document). pub struct Node { - /// The tree of nodes containing this node. - /// - /// # Safety - /// This is a raw pointer to the slab containing this node. - /// By using this pointer you must gurantee that this node outlives the tree. - //pub tree: *mut Slab, - /// This node's ID. pub id: usize,