1 2 3 4 5 6 7 8 9 10 11 12
/// Unit parsing error. #[derive(Debug)] pub struct Error; impl core::fmt::Display for Error { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { core::fmt::Debug::fmt(self, f) } } #[cfg(feature = "std")] impl std::error::Error for Error {}