Skip to content

Conversation

@petrochenkov
Copy link
Contributor

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

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