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

apply the closures exception to matches in actual args #525

Closed
nrc opened this issue Oct 23, 2015 · 3 comments
Closed

apply the closures exception to matches in actual args #525

nrc opened this issue Oct 23, 2015 · 3 comments

Comments

@nrc
Copy link
Member

nrc commented Oct 23, 2015

So we can put everything except the match body on one line.

@nrc nrc added this to the 1.0 milestone Apr 6, 2016
@marcusklaas
Copy link
Contributor

I'm not sure I understand this one.. Could you add an example?

@nrc
Copy link
Member Author

nrc commented Jun 4, 2016

To allow:

        foobar(f, "{}", match *self {
            TaskState::Started => "started",
            TaskState::Success => "success",
            TaskState::Failed => "failed",
        })

@marcusklaas
Copy link
Contributor

Aaah, gotcha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants