Formatting.

This commit is contained in:
Mara Bos 2022-01-04 16:32:39 +01:00
parent f5217792ed
commit 4300bea0c2

View File

@ -116,7 +116,9 @@ pub fn scope<'env, F, T>(f: F) -> T
// Throw any panic from `f`, or the return value of `f` if no thread panicked.
match result {
Err(e) => resume_unwind(e),
Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => panic!("a thread panicked"),
Ok(_) if scope.data.a_thread_panicked.load(Ordering::Relaxed) => {
panic!("a thread panicked")
}
Ok(result) => result,
}
}