Skip to content

Commit 494bd02

Browse files
Merge pull request #12 from petrochenkov/master
Fix illegal pattern in a function pointer type
2 parents c4d084d + 859093e commit 494bd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/nodes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub struct CommandNode {
119119
/// [`TreeNode`]: struct.TreeNode.html
120120
pub node: TreeNode,
121121
/// The handler which is executed once this node has been accepted.
122-
pub handler: Option<fn(&node: Node) -> ()>,
122+
pub handler: Option<fn(node: &Node) -> ()>,
123123
/// Parameter nodes for this command
124124
pub parameters: Vec<Rc<Node>>,
125125
/// If present, the command wrapped by this node.
@@ -267,7 +267,7 @@ impl CommandNode {
267267
hidden: bool,
268268
priority: i32,
269269
successors: Vec<Rc<Node>>,
270-
handler: Option<fn(&node: Node) -> ()>,
270+
handler: Option<fn(node: &Node) -> ()>,
271271
parameters: Vec<Rc<Node>>)
272272
-> Self {
273273
CommandNode {

0 commit comments

Comments
 (0)