Skip to content

chapter 20 - remove FnBox workaround #2146

@joekyo

Description

@joekyo

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?

Activity

steveklabnik

steveklabnik commented on Nov 11, 2019

@steveklabnik
Contributor

Yep, this is an important thing to do!

self-assigned this
on Nov 11, 2019
joekyo

joekyo commented on Nov 14, 2019

@joekyo
Author

Close as it has been fixed in #1906

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @steveklabnik@joekyo

      Issue actions

        chapter 20 - remove FnBox workaround · Issue #2146 · rust-lang/book