added Debug trait

This commit is contained in:
Mitchell 2020-08-10 18:55:27 +01:00
parent 7a25bd8b6e
commit 0b824efdb8
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ enum Message {
Terminate,
}
#[derive(Debug)]
pub struct ThreadPool{
workers: Vec<Worker>,
sender: Sender<Message>,
@ -50,6 +51,7 @@ impl ThreadPool{
}
}
#[derive(Debug)]
struct Worker {
id: usize,
thread: Option<thread::JoinHandle<()>>,