Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/parser/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub struct CommandNode {
/// [`TreeNode`]: struct.TreeNode.html
pub node: TreeNode,
/// The handler which is executed once this node has been accepted.
pub handler: Option<fn(&node: Node) -> ()>,
pub handler: Option<fn(node: &Node) -> ()>,
/// Parameter nodes for this command
pub parameters: Vec<Rc<Node>>,
/// If present, the command wrapped by this node.
Expand Down Expand Up @@ -267,7 +267,7 @@ impl CommandNode {
hidden: bool,
priority: i32,
successors: Vec<Rc<Node>>,
handler: Option<fn(&node: Node) -> ()>,
handler: Option<fn(node: &Node) -> ()>,
parameters: Vec<Rc<Node>>)
-> Self {
CommandNode {
Expand Down