(&self, f: &mut fmt::Formatter<'_>)
| 73 | |
| 74 | impl fmt::Display for UnwrapError { |
| 75 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 76 | match self { |
| 77 | UnwrapError::InvalidPublicKey(e) => { |
| 78 | write!(f, "Invalid public key: {}", e) |
| 79 | } |
| 80 | UnwrapError::SerdeFailure(e) => { |
| 81 | write!(f, "Failed to serialize or deserialize json value: {}", e) |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | impl std::error::Error for UnwrapError { |
nothing calls this directly
no outgoing calls
no test coverage detected