(&self, f: &mut std::fmt::Formatter<'_>)
| 29 | |
| 30 | impl core::fmt::Display for Error { |
| 31 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 32 | let err_str = match self { |
| 33 | Error::InvalidOpeningFeeParams => "Invalid opening fee params", |
| 34 | Error::PaymentSizeTooSmall => "Payment size too small", |
| 35 | Error::PaymentSizeTooLarge => "Payment size too large", |
| 36 | }; |
| 37 | write!(f, "{}", &err_str) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | impl From<Error> for RpcError { |
nothing calls this directly
no outgoing calls
no test coverage detected