Skip to content

Commit

Permalink
Attempt to satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpombrio committed Mar 9, 2024
1 parent 2251f22 commit 49a9f2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/language/forest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ impl<D> Forest<D> {

/// Create a new root node containing the given data.
pub fn new_node(&mut self, data: D) -> NodeIndex {
let index = self.arena.insert_with(|idx| Node {
self.arena.insert_with(|idx| Node {
parent: None,
prev: idx,
next: idx,
child: None,
data,
});
index
})
}

/// Get the parent of `node`, or `None` if it's a root.
Expand Down
3 changes: 0 additions & 3 deletions src/language/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// TODO: temporary
#![allow(unused)]

mod forest;
mod grammar;

Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: temporary
#![allow(unused)]

mod infra;
mod language;

Expand Down

0 comments on commit 49a9f2f

Please sign in to comment.