(&self, f: &mut fmt::Formatter<'_>)
| 597 | |
| 598 | impl fmt::Display for DsError { |
| 599 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 600 | match self { |
| 601 | DsError::NotFound { key } => write!(f, "no datastore entry for key {:?}", key), |
| 602 | DsError::MissingValue { key } => write!( |
| 603 | f, |
| 604 | "datastore entry had neither `string` nor `hex` for key {:?}", |
| 605 | key |
| 606 | ), |
| 607 | DsError::JsonParse { key, source } => { |
| 608 | write!(f, "failed to parse JSON at key {:?}: {}", key, source) |
| 609 | } |
| 610 | DsError::HexDecode { key, source } => { |
| 611 | write!(f, "failed to decode hex at key {:?}: {}", key, source) |
| 612 | } |
| 613 | } |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | impl std::error::Error for DsError {} |
nothing calls this directly
no outgoing calls
no test coverage detected