| 1 | //! Error type |
| 2 | |
| 3 | use core::fmt::{self, Display}; |
| 4 | |
| 5 | /// Error type |
| 6 | #[derive(Clone, Debug, PartialEq, Eq)] |
| 7 | pub struct Error; |
| 8 | |
| 9 | impl Display for Error { |
| 10 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 11 | f.write_str("platforms error") |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | #[cfg(feature = "std")] |
| 16 | impl std::error::Error for Error {} |