mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: use core::error (#11313)
This commit is contained in:
@ -19,8 +19,7 @@ impl<T: fmt::Display> fmt::Display for GotExpected<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T: fmt::Debug + fmt::Display> std::error::Error for GotExpected<T> {}
|
||||
impl<T: fmt::Debug + fmt::Display> core::error::Error for GotExpected<T> {}
|
||||
|
||||
impl<T> From<(T, T)> for GotExpected<T> {
|
||||
#[inline]
|
||||
@ -57,8 +56,7 @@ impl<T: fmt::Display> fmt::Display for GotExpectedBoxed<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T: fmt::Debug + fmt::Display> std::error::Error for GotExpectedBoxed<T> {}
|
||||
impl<T: fmt::Debug + fmt::Display> core::error::Error for GotExpectedBoxed<T> {}
|
||||
|
||||
impl<T> Deref for GotExpectedBoxed<T> {
|
||||
type Target = GotExpected<T>;
|
||||
|
||||
Reference in New Issue
Block a user