ThreadPool refactoring (#299)

This commit is contained in:
Carl Lerche
2018-04-04 13:30:54 -07:00
committed by GitHub
parent c715739599
commit 0bcf9b0ae6
14 changed files with 522 additions and 373 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
use builder::Builder;
use pool::Inner;
use pool::Pool;
use sender::Sender;
use shutdown::Shutdown;
@@ -118,7 +118,7 @@ impl ThreadPool {
Shutdown { inner: self.inner.take().unwrap() }
}
fn inner(&self) -> &Inner {
fn inner(&self) -> &Pool {
&*self.inner.as_ref().unwrap().inner
}
}