(&self, f: &mut fmt::Formatter<'_>)
| 241 | |
| 242 | impl fmt::Display for DsError { |
| 243 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 244 | match self { |
| 245 | DsError::NotFound { key } => write!(f, "no datastore entry for key {:?}", key), |
| 246 | DsError::MissingValue { key } => write!( |
| 247 | f, |
| 248 | "datastore entry had neither `string` nor `hex` for key {:?}", |
| 249 | key |
| 250 | ), |
| 251 | DsError::JsonParse { key, source } => { |
| 252 | write!(f, "failed to parse JSON at key {:?}: {}", key, source) |
| 253 | } |
| 254 | DsError::HexDecode { key, source } => { |
| 255 | write!(f, "failed to decode hex at key {:?}: {}", key, source) |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | impl std::error::Error for DsError {} |
nothing calls this directly
no outgoing calls
no test coverage detected