We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f521779 commit 4300beaCopy full SHA for 4300bea
library/std/src/thread/scoped.rs
@@ -116,7 +116,9 @@ where
116
// Throw any panic from `f`, or the return value of `f` if no thread panicked.
117
match result {
118
Err(e) => resume_unwind(e),
119
- Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => panic!("a thread panicked"),
+ Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => {
120
+ panic!("a thread panicked")
121
+ }
122
Ok(result) => result,
123
}
124
0 commit comments