We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4d084d + 859093e commit 494bd02Copy full SHA for 494bd02
src/parser/nodes.rs
@@ -119,7 +119,7 @@ pub struct CommandNode {
119
/// [`TreeNode`]: struct.TreeNode.html
120
pub node: TreeNode,
121
/// The handler which is executed once this node has been accepted.
122
- pub handler: Option<fn(&node: Node) -> ()>,
+ pub handler: Option<fn(node: &Node) -> ()>,
123
/// Parameter nodes for this command
124
pub parameters: Vec<Rc<Node>>,
125
/// If present, the command wrapped by this node.
@@ -267,7 +267,7 @@ impl CommandNode {
267
hidden: bool,
268
priority: i32,
269
successors: Vec<Rc<Node>>,
270
- handler: Option<fn(&node: Node) -> ()>,
+ handler: Option<fn(node: &Node) -> ()>,
271
parameters: Vec<Rc<Node>>)
272
-> Self {
273
CommandNode {
0 commit comments