mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Actually re-establish and assert Syncness of Error. (98affbdeaf)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
aebe2d72de
commit
3125b7e291
2 files changed
+11
-5
No files matched your search
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user