Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
use core::{error, fmt};
|
||||
|
||||
/// A zero-sized type that represents an error that occurred while decoding.
|
||||
///
|
||||
/// No information is provided where the error occurred or what the error was,
|
||||
/// only that an error *did* occur.
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
pub struct DecodingError(pub(crate) ());
|
||||
|
||||
impl fmt::Debug for DecodingError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("DecodingError")
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for DecodingError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("invalid input")
|
||||
}
|
||||
}
|
||||
|
||||
impl error::Error for DecodingError {}
|
||||
Reference in New Issue
Block a user