Skip to content

Commit 872cb5e

Browse files
committed
std: Don't use Drop trait in thread_pool
1 parent 4589597 commit 872cb5e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libstd/thread_pool.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ pub struct ThreadPool<T> {
1313
channels: ~[Chan<Msg<T>>],
1414
mut next_index: uint,
1515

16-
}
17-
18-
impl<T> ThreadPool<T> {
19-
fn finalize() {
16+
drop {
2017
for self.channels.each |channel| {
2118
channel.send(Quit);
2219
}

0 commit comments

Comments
 (0)