mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 05:32:16 -04:00
Added second missing dyn
This commit is contained in:
@@ -895,7 +895,7 @@ at Listing 20-19.
|
||||
# use std::sync::mpsc;
|
||||
# struct Worker {}
|
||||
|
||||
type Job = Box<FnOnce() + Send + 'static>;
|
||||
type Job = Box<dyn FnOnce() + Send + 'static>;
|
||||
|
||||
impl ThreadPool {
|
||||
// --snip--
|
||||
|
||||
Reference in New Issue
Block a user