Skip to content

Commit

Permalink
Pass clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Oct 27, 2024
1 parent e0611c7 commit 6df1a71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
12 changes: 6 additions & 6 deletions packages/blitz-dom/src/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand All @@ -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> {
self.node.parent.map(|id| self.get(id))
Expand Down
7 changes: 0 additions & 7 deletions packages/blitz-dom/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node>,

/// This node's ID.
pub id: usize,

Expand Down

0 comments on commit 6df1a71

Please sign in to comment.