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

chapter 20 - remove FnBox workaround #2146

Closed
joekyo opened this issue Nov 11, 2019 · 2 comments
Closed

chapter 20 - remove FnBox workaround #2146

joekyo opened this issue Nov 11, 2019 · 2 comments
Assignees
Labels

Comments

@joekyo
Copy link

joekyo commented Nov 11, 2019

As in Rust 1.35.0, FnBox is no loger needed.
https://blog.rust-lang.org/2019/05/23/Rust-1.35.0.html

It is perfectly OK to call job(); now

match message {
    Message::NewJob(job) => {
        job();
    }

Is there any plan to remove the FnBox workaround?

@steveklabnik
Copy link
Member

Yep, this is an important thing to do!

@steveklabnik steveklabnik self-assigned this Nov 11, 2019
@joekyo
Copy link
Author

joekyo commented Nov 14, 2019

Close as it has been fixed in #1906

@joekyo joekyo closed this as completed Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants