|
|
@@ -95,7 +95,10 @@ impl<T> JoinHandle<T> {
|
|
|
impl<T> Drop for JoinHandle<T> {
|
|
|
fn drop(&mut self) {
|
|
|
if self.std_handle.is_some() {
|
|
|
- warn!("Attempting to drop a Join Handle of a running thread will leak thread IDs, please join your threads!");
|
|
|
+ warn!(
|
|
|
+ "Attempting to drop a Join Handle of a running thread will leak thread IDs, \
|
|
|
+ please join your threads!"
|
|
|
+ );
|
|
|
self.join_inner().expect("Child thread panicked");
|
|
|
}
|
|
|
}
|