Actually re-establish and assert Syncness of Error. (98affbdeaf)

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-11-27 07:22:55 +00:00
1 parent aebe2d72de
commit 3125b7e291
2 files changed
+11 -5

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ impl Error {
pub fn into_panic(self) -> Box<dyn Any + Send> {
match self {
| Self::JoinError(e) => e.into_panic(),
| Self::Panic(_, mut e) | Self::PanicAny(mut e) =>
e.take().expect("Error contained panic"),
| Self::Panic(_, e) | Self::PanicAny(e) =>
e.into_inner().expect("Error contained panic"),
| _ => Box::new(self),
}
}