Skip to content

Commit

Permalink
Merge pull request #26 from manelmontilla/ineffectual-drops
Browse files Browse the repository at this point in the history
wruster/thread_pool: remove ineffectual drops
  • Loading branch information
manelmontilla authored Nov 23, 2023
2 parents a332b83 + f7b5d06 commit 0957c8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions wruster/src/thread_pool/dynamic_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ impl Dynamic {
}
}

impl Drop for Dynamic {
fn drop(&mut self) {
for worker in &*self.workers {
#[allow(clippy::drop_ref)]
drop(worker);
}
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
10 changes: 0 additions & 10 deletions wruster/src/thread_pool/static_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ impl Static {
}
}

impl Drop for Static {
fn drop(&mut self) {
let workers = &self.workers;
for worker in workers {
#[allow(clippy::drop_ref)]
drop(worker);
}
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 0957c8c

Please sign in to comment.