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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions