Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix illegal pattern in a function pointer type #12

Merged
merged 1 commit into from
Aug 6, 2016
Merged

Fix illegal pattern in a function pointer type #12

merged 1 commit into from
Aug 6, 2016

Conversation

petrochenkov
Copy link
Contributor

This crate was broken by a recent bugfix in rustc (see rust-lang/rust#35015).
Here's a fix.

@@ -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) -> ()>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be node: &Node probably as I don't mean for the handler to consume the node. Right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like that, updated.
Also, one more illegal pattern fixed.

@waywardmonkeys
Copy link
Collaborator

Thanks so much!

@waywardmonkeys waywardmonkeys merged commit 494bd02 into endoli:master Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants