jeb/errors.rs
1#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2pub enum Panic {}
3
4#[expect(clippy::fallible_impl_from)]
5impl<Error: ::core::fmt::Debug> From<Error> for Panic {
6 fn from(error: Error) -> Self {
7 panic!("{error:#?}");
8 }
9}
10
11impl ::core::fmt::Display for Panic {
12 fn fmt(&self, _f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
13 unreachable!()
14 }
15}